赵走x博客
网站访问量:152294
首页
书籍
软件
工具
古诗词
搜索
登录
返回顶部
返回顶部
资源编号:556915
热度:91
# 源码 ### HTML源码 ```
返回顶部
向下滑动
该实例演示了如何实现网页返回顶部效果。
``` ### CSS源码 ``` #myBtn { display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99; border: none; outline: none; background-color: red; color: white; cursor: pointer; padding: 15px; border-radius: 10px; } #myBtn:hover { background-color: #555; } ```
展示效果