开发者

IE8 Bug with @media print? Table border disappears on pages greater than 1

开发者 https://www.devze.com 2023-03-01 03:26 出处:网络
I have a page with an HTML table. When I use print preview in IE8, the table borders do not print starting on the 2nd page. So this is one and the same table, but it has a page break, and on the 2nd p

I have a page with an HTML table. When I use print preview in IE8, the table borders do not print starting on the 2nd page. So this is one and the same table, but it has a page break, and on the 2nd page there are no borders.

IE8 Bug with @media print? Table border disappears on pages greater than 1

IE8 Bug with @media print? Table border disappears on pages greater than 1

It seems to me that this ought to be a bug in IE that affects how the style sheets are applied across page breaks when @media print is used.

I will have to get to the bottom of this so that I can find a workaro开发者_开发技巧und. In the meantime, if somebody has seen this and know how to address it, please let me know.


Geez, why do I always have to run into these things?

This CSS does not work and shows (causes?) the above behavior:

@media print {
    #container, form { position: absolute; }
}

This CSS works as expected, the borders show up fine:

@media print {
    #container { position: absolute; }
    form { position: absolute; }
}

???

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号