开发者

IE, Iframes, and multiple classes

I'm having an issue with multiple classes assig开发者_开发知识库ned to one element and IE (9 and less).

When you look at the page itself, all styles for all classes get applied to the element. For instance:

<a href="blah" class="c1 c2">blah</a>

The styles for c1 and c2 are both applied to the hyperlink.

The problem occurs when I view the page within an iFrame. It's as if only the first class is seen and the second class is ignored. It works fine on Firefox.


All style sheets must be included both into your main page and into iframe page. Because there's an independent document in the iframe, it does not "see" the style sheet of the main page.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜