开发者

IE - styleSheet.addRule ignored when printing?

I'm setting some css rules dynamicall开发者_如何学Goy in IE8 using the addRule() method. I'm finding that when I print, these rules are getting ignored - whether I'm adding the rules to a print specific stylesheet or not.

Anyone know a way around this?


It looks like this is only the case for external style sheets - workaround is to use an inline <style> element instead.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜