首页 > 其他 > 详细

position固定标签

时间:2020-04-18 21:17:14      阅读:56      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Position用法</title>
    <style>
            .div5{
            position: fixed;  /*固定标签*/
            bottom: 25px;
            right: 25px;
        }
        .div1{
            background-color:purple;
            height: 500px;
            width: revert;
        }
        .div2{
            background-color: red;
            height: 500px;
            width: revert;
        }

    </style>
</head>
<body>
    <div id="top"></div>
    <div class="div2">div1</div>
    <div class="div1">div2</div>
    <a class="div5" href="#top">返回上一层</a>
</body>
</html>

 

position固定标签

原文:https://www.cnblogs.com/TKOPython/p/12727869.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!