好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

让某一个div固定在屏幕中的解决方法

pos IT ion:fixed;

复制代码

代码如下:


<ht ML XM lns="http://www.w3. org /1999/xhtml">
<head runat="server">
<title></title>
<style ty PE ="text/css">
# low_right
{
position: fixed;
width: 90px;
h ei ght: 90px;
background: #eee;
bottom: 40px;
right: 20px;
background-color: #DC fc E9;
border: 8px do ub le #06F867;
text-align: center ;
padding: 10px;
m arg in: 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>

总结

以上是 为你收集整理的 让某一个div固定在屏幕中的解决方法 全部内容,希望文章能够帮你解决 让某一个div固定在屏幕中的解决方法 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于让某一个div固定在屏幕中的解决方法的详细内容...

  阅读:22次