tt怎样屏蔽浮动网页元素

document.domain = "csdn.net";

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.csdn.net/mayongzhan - 马永占,myz,mayongzhan

今天在家上cy,用ie,ff看网页都很正常,然后用tt,结果发现首页上没有宠物和广告,想到了去tt设置里看一下,果然有个选项是隐藏浮动网页元素,把钩去掉,宠物和广告都出来了。突然想到csdn博客上的ggad是不是也是这个毛病,结果打开首页一看,广告没有消失,困扰我几个月的问题,终于在不经意间解决,幸运。

tt怎样屏蔽浮动网页元素? 什么是tt认为的浮动网页元素?
position: absolute;的不算,z-index: 100的也不算,
只有当position:absolute结合内部标签有img,object,iframe时,tt会认为是浮动元素。

gg广告的组成就是postion:absolute加上一个iframe,所以会被tt屏蔽掉。

下面是测试代码,测试覆盖不完全,但是已经够用了。

<!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="马永占(MyZ)" />
<meta name="Copyright" content="马永占(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>
<div style="position: absolute; top: 0px; left: 170px; z-index: 100;"><div><img width="40px" height="40px" src="http://www.baidu.com/img/baidu_logo.gif" /></div></div>
<div style="position: relative;"><img src="http://www.baidu.com/img/baidu_logo.gif" /></div>
<div style="position: absolute;"><img src="http://www.google.cn/intl/zh-CN/images/logo_cn.gif" /></div>
<div style="position: absolute; top: 0px; left: 200px;"><img src="http://www.google.cn/intl/zh-CN/logos/Logo_25gry.gif" /></div>
<div style="position: absolute; top: 0px; left: 300px; z-index: 100;"><img src="http://www.google.cn/intl/zh-CN/logos/fathersday08.gif" /></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>

你可能感兴趣的:(css,Google,IE,Flash,出版)