手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >让DIV一直固定在屏幕的某个位置示例代码
让DIV一直固定在屏幕的某个位置示例代码
摘要:#low_right{position:fixed;width:90px;height:90px;background:#eee;botto...

<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相框效果示例代码

CSS中怎么让DIV居中亲自实验得出的结论

CSS3 实用技巧:实现黑白图像效果示例代码

CSS上下文选择符实现基于位置为HTML元素添加样式

DIV+CSS固定底部的漂浮广告

如何让某个页面使用特定的CSS

页面背景图片的拉伸实现代码

css实现文字层浮在图片之上示例代码

用css实现十字的布局示例代码

DIV+CSS常用的网页布局代码

精品推荐
分类导航