How TT shields floating web page elements

Source: Internet
Author: User

Copyright statement: original works can be reproduced. During reprinting, you must mark the original publication, author information, and this statement in hyperlink form. Otherwise, legal liability will be held. Http://blog.csdn.net/mayongzhan-ma yongzhan, myz, mayongzhan

 

Today, when I was at home, Cy, I used IE and FF to view the webpage normally. Then I used TT and found that there were no pets or advertisements on the homepage. I thought of taking a look at the TT settings, the option is to hide the floating web page elements, remove the hooks, and release pets and advertisements. I suddenly thought about whether ggad on the csdn blog was the same problem. As a result, I opened the homepage and saw that the advertisement had not disappeared. The problem that had plagued me for a few months was finally solved inadvertently. I was lucky.

How does tt Block Floating web page elements? What are the floating web page elements that TT considers?
Position: absolute; does not count. Z-index: 100 does not count,
Only when position: absolute is combined with internal labels including IMG, object, and IFRAME, TT considers it as a floating element.

A Gg advertisement consists of Postion: absolute and an IFRAME, so it will be blocked by TT.

The following is the test code. The test coverage is incomplete, but it is enough.

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "content-language" content = "UTF-8"/>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Meta name = "author" content = "Ma yongzhan (myz)"/>
<Meta name = "Copyright" content = "Ma yongzhan (myz)"/>
<Meta name = "Description" content = ""/>
<Meta name = "keywords" content = ""/>
<LINK rel = "icon" href = "" type = "image/X-icon"/>
<LINK rel = "shortcut icon" href = "" type = "image/X-icon"/>
<Link href = "" rel = "stylesheet" type = "text/CSS"/>
<SCRIPT type = "text/JavaScript" src = ""> </SCRIPT>
<Title> </title>
<Style type = "text/CSS">
<! --

-->
</Style>
</Head>
<Body>
<Div style = "position: relative;"> 0 </div>
<Div style = "position: absolute;"> 1 </div>
<Div style = "position: absolute; top: 0px; left: 50px;"> 2 </div>
<Div style = "position: absolute; top: 0px; left: 100px; Z-index: 100;"> 3 </div>
<Div style = "position: absolute; top: 0px; left: 150px; Z-index: 100;"> <div> 4 </div>
<Div style = "position: absolute; top: 0px; left: 170px; Z-index: 100; "> <div> </div>
<Div style = "position: relative;"> </div>
<Div style = "position: absolute;"> </div>
<Div style = "position: absolute; top: 0px; left: 200px;"> </div>
<Div style = "position: absolute; top: 0px; left: 300px; Z-index: 100;"> </div>
<Div style = "position: absolute; top: 0px; left: 500px; Z-index: 100;">
<Object Height = "160" width = "550" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid = "CLSID: D27CDB6E-AE6D-11cf-96B8-444553540000">
<Param value = "http://www.flash8.net/UploadFla/10/flash8net_9587.swf" name = "movie"/>
<Param value = "high" name = "quality"/>
<Embed Height = "160" width = "550" type = "application/X-Shockwave-flash" pluginspage = "http://www.macromedia.com/go/getflashplayer" Quality = "high" src = "/uploadfla/10 /flash8net_9587.swf "/>
</Object>
</Div>
<Div style = "position: absolute; top: 0px; left: 600px; Z-index: 100;">
<IFRAME src = "test2.php"> </iframe>
</Div>
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.