样式控制
1, 页面样式问题:
显示器和打印机是不同的,主要是长度单位的不同,显示器常用px,而打印机很多时候用mm,所以需要两套css样式来控制。
<link rel="stylesheet" href="../assets/css/abc.css" media="screen"/>
<link rel="stylesheet" href="../assets/css/abc-print.css" media="print"/>
@media print
{
.Noprint{DISPLAY:none;}
.w{width:100%;} /*版心适应打印设备的100%*/
}
2.
.header {
- height: 70px;
- margin-bottom: 20px;
- box-shadow: 0 5px 20px rgba(0,0,0,.1);
相关推荐
pigsmall 2020-11-19
graseed 2020-10-28
大数据杂谈 2020-09-26
SXIAOYI 2020-09-16
jinhao 2020-09-07
ChinaWin 2020-08-13
mohanzb 2020-08-01
王国平 2020-06-20
yoohsummer 2020-06-01
kangtingting0 2020-05-20
MichelinMessi 2020-02-19
impress 2020-02-20
nicepainkiller 2020-01-25
hfszy0 2013-05-15
lizhenmxcz 2013-05-12
gxyblue 2013-05-11
chenshuixian 2013-06-01
羽化大刀Chrome 2013-05-31
tichangde 2020-01-17