【发布时间】:2019-01-21 15:36:53
【问题描述】:
我正在做一个项目,得到了两种类似这样的媒体查询
<style type="text/css" media="print">
div.page {
page-break-after: always !important;
page-break-inside: avoid !important;
}
</style>
<style media="screen,print">
.customTdWidth {
width: 35% !important;
font-weight: bold;
}
.tdValue {
width: 65%;
border-bottom: 1px dotted black !important;
}
</style>
媒体查询中的“screen”和“print”有什么区别?
【问题讨论】:
标签: css media-queries