您当前的位置: 首页 > 前端教程 > CSS教程 > 跟随网页浮动层效果代码

跟随网页浮动层效果代码

作者:不详 来源:网络 发布时间: 2010-07-15 14:31 点击:
在网上找到不少用js写的。这个用css写的,在别人网站上找到,把内容精简了 %@PageLanguage=C#AutoEventWireup=trueCodeFile=Default.aspx.csInherits=test_Default% !DOCTYPEhtmlPUBLIC-//W3C//DTDXHTML1.0Transitional//ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-tra

跟随网页浮动层效果代码

  在网上找到不少用js写的。这个用css写的,在别人网站上找到,把内容精简了
  
  
  <%@PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="test_Default"%>
  
  <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
  <htmlxmlns="http://www.w3.org/1999/xhtml">
  <headrunat="server">
  <title>无标题页-CSS实例教程:跟随网页浮动层效果代码-http://www.web2bar.cn</title>
  
  <styletype="text/css">
  #sticky_footer
  {
  width:100%;
  background-color:#eee;
  opacity:.8;
  filter:alpha(opacity=80);
  -moz-opacity:0.8;
  position:fixed;
  _position:absolute;
  overflow:hidden;
  height:38px;
  bottom:0;
  z-index:99999;
  line-height:38px;
  float:left;
  _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));
  }
  #wrapperfooter{width:960px;margin:0auto;border-top:0px#e5e5e5solid;padding:0;}
  </style>
  </head>
  <body>
  <formid="form1"runat="server">
  <divstyle="height:900px;background-color:Blue">
  
  </div>
  <divstyle="height:90px;">
  
  </div>
  <divid="sticky_footer">
  <divid="wrapperfooter">
  在网上找到不少用js写的。这个用css写的,在别人网站上找到,把内容精简了
  </div>
  </div>
  </form>
  </body>
  </html>

分享到:
本文"跟随网页浮动层效果代码"由远航站长收集整理而来,仅供大家学习与参考使用。更多网站制作教程尽在远航站长站。
顶一下
(0)
0%
踩一下
(1)
100%
[点击 次] [返回上一页] [打印]
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
关于本站 - 联系我们 - 网站声明 - 友情连接- 网站地图 - 站点地图 - 返回顶部
Copyright © 2007-2013 www.yhzhan.com(远航站长). All Rights Reserved .
远航站长:为中小站长提供最佳的学习与交流平台,提供网页制作与网站编程等各类网站制作教程.
官方QQ:445490277 网站群:26680406 网站备案号:豫ICP备07500620号-4