让DIV一直固定在屏幕的某个位置

来源:互联网 发布:数据仿真模型 编辑:程序博客网 时间:2024/05/19 08:46
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title>    <style type="text/css">        #low_right        {            position: fixed;            width: 90px;            height: 90px;            background: #eee;            bottom: 40px;            right: 20px;            background-color: #DCFCE9;            border: 8px double #06F867;            text-align: center;            padding: 10px;            margin: 10px;        }    </style></head><body>    <script type="text/javascript">        for (var i = 0; i < 100; i++) {            document.write((i + 1) + "<br />");        }    </script>    <div id="low_right">        右下角    </div></body></html>

原创粉丝点击