专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »博文摘选 » divcss:纯CSS+DIV对联 »正文

divcss:纯CSS+DIV对联

来源: 发布时间:星期五, 2009年10月2日 浏览:0次 评论:0
转载自:http://blog.csdn.net/qjpspgf/archive/2009/10/02/4627203.aspx

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;}


页面代码为:
<div class="r1"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div> 
<div class="r2"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div> 
<div class="l1"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div> 
<div class="l2"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div> 

出处:源码网

0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: