php网页悬浮对联代码,不用js多浏览器兼容纯DIV/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;}
頁面代碼為:
總結
以上是生活随笔為你收集整理的php网页悬浮对联代码,不用js多浏览器兼容纯DIV/CSS对联漂浮广告代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: matlab 信号去直流,基于FIR滤波
- 下一篇: pythonweb开发需要学哪些知识,p