手机
当前位置:查字典教程网 >网页设计 > 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一直固定在屏幕的某个位置示例代码】相关文章:

DIV垂直居中的办法

相邻div实现一个跟着另一个自适应高度示例代码

一段巧妙的css debug代码

实现div垂直居中的display:table-cell方法示例介绍

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

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

宽度百分比单位的转换公式及示例

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

让网站变成黑白的css代码

练习层DIV的定位小实例

精品推荐
分类导航