3
所以我media =“print”and .noprint {display:none; }不工作
.noprint
{
display: none;
}
样式表中的print.css
和
<link rel="stylesheet" type="text/css" href="/assets/css/print.css" media="print"/>
在我的网页标题。
我已将类noprint添加到多个div和图像,但它们仍显示在Google Chrome的打印预览中。
任何想法?
这应该工作。确保已经正确指定了链接标记的href的路径。 – Muse 2012-08-14 10:48:42
尝试列出在样式表中打印时您不希望显示的元素。 – 2012-08-14 10:51:22
好东西,对我很好! – 2014-01-30 21:22:25