让DIV一直固定在屏幕的某个位置示例代码

网站建设 2023-01-28 21:39www.1681989.com免费网站

复制代码
代码如下:

<html xmlns="http://.w3./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;
paddg: 10px;
marg: 10px;
}
</style>
</head>
<body>
<script type="text/javascript">
for (var i = 0; i < 100; i++) {
document.write((i + 1) + "
");
}
</script>
<div id="low_right">
右下角
</div>
</body>
</html>

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by