<style type="text/css">.top { width: 50px; height: 50px; background-color: #F0F0F0; border: 1px solid #D9D9D9; z-index: 1; right: 10px; bottom: 10px; POSITION: fixed } .top a { width: 50px; height: 49px; display: block; text-align: center; line-height: 49px; font-size: 12px; color: #999999; text-decoration: none }</style> <div class="top"> <a href="#">回顶部</a> </div>
本文介绍了一个简单的 CSS 回顶部按钮的设计方案,通过固定定位和简洁的样式实现页面滚动时快速返回顶部的功能。
3313

被折叠的 条评论
为什么被折叠?



