开发者

styling affected by parent page css

开发者 https://www.devze.com 2023-02-27 03:32 出处:网络
I\'m hosting a webpage and wrapping my content (the body) with a 3rd party websites header/footer html and their styling. I have my own styling asso开发者_运维技巧ciated with the content in the body o

I'm hosting a webpage and wrapping my content (the body) with a 3rd party websites header/footer html and their styling. I have my own styling asso开发者_运维技巧ciated with the content in the body of the page but some of the 3rd party websites styling is affecting my content. Is there something I can wrap my HTML code with to block the styling from the 3rd party?


You must be mistaken. That can't happen.

You might be including the same style sheets in both the parent page and the iframe content page.


Add !important to the end of your css to ensure that no other css over rides it

ex:

#Something
{
    color: White !important;
}
0

精彩评论

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

关注公众号