开发者

Do browsers have to "render" (for lack of a better term) divs that have the display:none property?

If I have, for instance:

<div style="display:none"&开发者_如何学编程gt;
    (The content of this div is a huge QuickTime movie.)
</div>
<div>
    (The content of this div is just lines of text.)
</div>

Will the browser try to start downloading the QT movie in the first div?

I tried searching this site and Google before asking, so if it's been answered before and my Google-Fu is just off today, I sincerely apologize. It seems like a question that would have been asked, but I couldn't find it.


Anything with a <div> that is set to display:none is still technically and semantically there. Any content contained within the hidden <div> will be loaded as if it were visible.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜