手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >让某一个div固定在屏幕中的解决方法
让某一个div固定在屏幕中的解决方法
摘要:position:fixed;#low_right{position:fixed;width:90px;height:90px;backgr...

position:fixed;

<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) + "

");

}

</script>

<div id="low_right">

右下角

</div>

</body>

</html>

【让某一个div固定在屏幕中的解决方法】相关文章:

div+css垂直居中的五种实现方法

css让容器水平垂直居中的7种方式

IE6下图片下方有空间距的多种解决方法

DIV+CSS页面布局中BUG解决方法

用CSS实现垂直居中的3种方法

chrome居中但ie不居中的解决方法

div标签中的元素margin-top失效的解决方法

div嵌套 img 空白解决方法

CSS 控制因Html页面高度导致抖动的问题解决方法

css中不确定高度垂直居中2种方法

精品推荐
分类导航