[英]@page css media does not work for Chrome and IE
I've got some question about @page css media tag. 我对@page CSS媒体标签有一些疑问。
So I read some documentation written by w3 and Microsoft, but anyways no effect with it. 因此,我阅读了w3和Microsoft编写的一些文档,但是无论如何都没有效果。
Following the link http://msdn.microsoft.com/en-us/library/ie/ms530841(v=vs.85).aspx when I use the parameters like they say, it does not work for me. 当我使用他们说的参数时,点击链接http://msdn.microsoft.com/zh-cn/library/ie/ms530841(v=vs.85).aspx ,它对我不起作用。
I even can't find any other example how to numerate pages in browser print media. 我什至找不到其他示例如何在浏览器打印媒体中对页面进行编号。
Can anyone help me? 谁能帮我?
Updated 更新
here is my snippet for it. 这是我的摘录。 Margins work correctly, but counting dont. 保证金工作正常,但不算。
@page {
margin-top: 15mm;
margin-bottom: 25mm;
margin-left: 30mm;
margin-right: 30mm;
@bottom-center {
content: "page " counter(page);
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.