开发者

IE - styleSheet.addRule ignored when printing?

开发者 https://www.devze.com 2023-03-27 07:10 出处:网络
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 spe

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

精彩评论

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