4-11固定定位的用途返回顶部按钮

来源:互联网 发布:主流数据库 对比 编辑:程序博客网 时间:2024/06/11 05:13
<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>Document</title>    <style>        .backtop {            position: fixed;            bottom: 100px;            right: 30px;            width: 60px;            height: 60px;            background-color: gray;            text-align: center;            line-height: 30px;            text-decoration: none;            font-size: 12px;            color: white;        }    </style></head><body>    <a href="#" class="backtop">返回<br />顶部</a>    <img src="images/0103-large.jpg" alt="">    <img src="images/0103-large.jpg" alt=""></body></html>

原创粉丝点击