标签: css firefox google-chrome printing
以下是示例:
http://jsbin.com/oxunu3/6
在chrome和firefox中进行打印预览。为什么铬不喜欢100%的高度?任何黑客或其他什么?
答案 0 :(得分:2)
众所周知,Webkit浏览器有自己的小怪癖,这些怪癖会偏离所谓的做事方式。我将min-height:更改为height: 或使用了::before { content: <img src="spacer.gif" width="1" height="100%" />"; }并且有效。
min-height:
height:
::before { content: <img src="spacer.gif" width="1" height="100%" />"; }
看起来谷歌或苹果正试图拯救人们的墨水。