天天看点

html一键回到顶部,HTML实现简单大方的 “返回顶部” 实例代码

简单的“返回顶部”效果

.cs{ width:50px; height:100px; background-color: #F0F0F0; border:1px solid #D9D9D9; z-index:1; right:5px; bottom:5px;POSITION:fixed;_position:absolute; _margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop);}

.cs a{ width:50px; height:49px; display:block; text-align:center; line-height:49px; font-size:12px; color:#999999; text-decoration:none;}

.cw{ border-bottom:1px solid #D9D9D9;}

.xx{ width:600px; height:1000px;}

发帖子

回顶部