让DIV一直固定在屏幕的某个位置示例代码_ Div+Css教程-查字典教程网
让DIV一直固定在屏幕的某个位置示例代码
让DIV一直固定在屏幕的某个位置示例代码
发布时间:2016-12-27 来源:查字典编辑
摘要:#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教程学习
    热门 Div+Css教程学习
    网页设计子分类