How to apply style to a div which is inside an ifr

2019-08-04 00:06发布

This question already has an answer here:

I have been working with css and html for about 6 months. I am confused: why can't I apply styles to a div which is inside an iframe of my current page?

标签: css iframe
1条回答
小情绪 Triste *
2楼-- · 2019-08-04 00:24

The inner page is independent when it comes to css styles. You can add styles to the iframe element itself, but if you want to style divs inside it, you would have to reference the css on the child page.

查看更多
登录 后发表回答