Will an iframe render in quirks mode?

前端 未结 3 950
死守一世寂寞
死守一世寂寞 2020-11-27 20:54

I\'m working on setting up a page and am having difficulty with getting it to look well across browsers (actually just IE, as it renders properly for mozilla and webkit). I\

3条回答
  •  情歌与酒
    2020-11-27 21:34


    CAVEAT EMPTOR

    As some have sadly failed to notice this answer was posted and accepted quite a long time before IE9 existed which changes the terms of the question. I would normally have deleted this to avoid catching any more downvotes but since the answer is actually still true and sadly relevant to a substantial portion of the browser demographics, I'll leave it up. Just please don't downvote it any more.


    Quirksmode: IE renders iframes as separate document nodes, doctype is not inherited, and quirks is the default.

    Edit: somebody else's demonstration of your problem and proof of non-inheritance (with thanks to my bookmarks :P )

    However, you've chosen "Almost" as your doctype which means iframes aren't allowed anyway. The only way you could get valid iframes is if the parent was in quirks which makes inheritance or not a moot point.

    Recommended reading.

提交回复
热议问题