手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >不用js多浏览器兼容纯DIV/CSS对联漂浮广告代码
不用js多浏览器兼容纯DIV/CSS对联漂浮广告代码
摘要:纯DIV/CSS对联漂浮广告代码(无JS)源码网两侧漂浮。经测试,兼容IE6,IE7,Firefox浏览器。CSS代码为:复制代码代码如下:...

纯DIV/CSS对联漂浮广告代码(无JS)

源码网两侧漂浮。经测试,兼容IE6,IE7,Firefox浏览器。

CSS代码为:

复制代码 代码如下:

.r1{width:80px;height:80px;background:red;float:right;

position:fixed!important;top/**/:200px;

position:absolute;z-index:300;top:expression(offsetParent.scrollTop+200);right:20px;}

.r2{width:80px;height:80px;background:red;float:right;

position:fixed!important;top/**/:300px;

position:absolute;z-index:400;top:expression(offsetParent.scrollTop+300);right:20px;}

.l1{width:80px;height:80px;background:red;float:right;

position:fixed!important;top/**/:200px;

position:absolute;z-index:300;top:expression(offsetParent.scrollTop+200);left:20px;}

.l2{width:80px;height:80px;background:red;float:right;

position:fixed!important;top/**/:300px;

position:absolute;z-index:400;top:expression(offsetParent.scrollTop+300);left:20px;}

页面代码为:

复制代码 代码如下:

<divclass="r1"><ahref="http://www.jb51.net"target='_about'><imgsrc="/js/pic/piao-l-1.gif"width="80"height="80"border="0"/></a></div>

<divclass="r2"><ahref="http://www.jb51.net"target='_about'><imgsrc="/js/pic/piao-l-1.gif"width="80"height="80"border="0"/></a></div>

<divclass="l1"><ahref="http://www.jb51.net"target='_about'><imgsrc="/js/pic/piao-l-1.gif"width="80"height="80"border="0"/></a></div>

<divclass="l2"><ahref="http://www.jb51.net"target='_about'><imgsrc="/js/pic/piao-l-1.gif"width="80"height="80"border="0"/></a></div>

【不用js多浏览器兼容纯DIV/CSS对联漂浮广告代码】相关文章:

DIV+CSS常用的网页布局代码

兼容各浏览器:CSS定义PNG透明效果

可视化优站边栏悬浮窗代码

不同浏览器兼容的CSS编码准则

css中用javascript判断浏览器版本

两个DEDECMS分页样式css代码

CSS对浏览器的兼容性性处理(IE7,6与Fireofx)

Google浏览器CSS居中兼容问题完美解决方法

CSS不同浏览器兼容问题

DIV+CSS固定底部的漂浮广告

精品推荐
分类导航