开发者

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

开发者 https://www.devze.com 2023-02-05 20:13 出处:网络
If I have, for instance: <div style=\"display:none\"&开发者_如何学编程gt; (The content of this div is a huge QuickTime movie.)

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

精彩评论

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