在我的网页中,我使用了 2 个样式表:
<link rel="stylesheet" href="css/screen-layout.css" media="screen" type="text/css" />
<link rel="stylesheet" href="css/print-layout.css" media="print" type="text/css" />
里面print-layout.css
有:
.ui-dialog * {display: none !important;}
当我在 IE7 上查看我的网页时,它应该忽略那个media="print"
,但它没有,它应用了display: none
,导致所有元素都被隐藏。在 IE7 的调试栏插件中,我可以看到 IE7 应用了该print-layout.css
文件。这怎么可能?还是我错过了在 IE7 上使用打印的任何要求?
谢谢 :)