手机
当前位置:查字典教程网 >网页设计 > 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固定在屏幕中的解决方法】相关文章:

CSS让ul所有的li居中显示的方法

Input标签与图片按钮水平对齐解决方法

DIV下图片自适应解决方法

火狐在用offsetHeight获取div的高度时为0的解决方法

CSS实现让同一行文字和输入框对齐的方法

div嵌套 img 空白解决方法

firefox和谷歌不显示body背景图片的解决方法

img标签下多余空白BUG解决方法

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

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

精品推荐
分类导航