<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ie6层固定</title>

<style type="text/css">

<!--

.box {

background-color: #09C;

height: 60px;

width: 100%;

position: fixed;

bottom: 0px;

left: auto;

right: auto;

line-height: 60px;

text-align: center;

_POSITION: absolute;/*兼容IE6*/

 _TOP: expression(offsetParent.scrollTop+document.documentElement.clientHeight-this.offsetHeight);/*兼容IE6*/

}

.box a{color: #FFF;}

*html{
background-image:url(about:blank);
background-attachment:fixed;
}
--> </style> </head> <body> <div style="height:2000px;">这个例子是实现层固定在浏览器窗口的最下面,兼容IE6.<br /> <br /> 往下看,看页面的最下面</div> <div class="box"><a href="#" target="_blank">我固定在页面底部,拖动浏览器的滚动条试试 = =>></a></div> </body> </html>

最新文章

  1. Django--自定义用户认证
  2. Eclipse中怎么安装TestNG单元测试框架
  3. xmimd的第十天笔记
  4. iOS:个性化UITextView(缩进,行距,铺满)
  5. java操作xml
  6. CMake实践(4)
  7. Objective-C运行时编程 - 实现自动化description方法的思路及代码示例
  8. iOS 集合的深复制与浅复制
  9. select into from 和 insert into select 的用法和区别(转)
  10. Jquery实现鼠标移到某个对象,弹出显示层。
  11. HDU6166-Senior Pan-Dijkstra迪杰斯特拉算法(添加超源点,超汇点)+二进制划分集合-2017多校Team09
  12. ( ! ) Parse error: syntax error, unexpected &#39;&#39; (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in D:\demo\code\yolo\index\index.php on li
  13. 异常-----freemarker.core.ParseException: Unexpected end of file reached
  14. LeetCode-101.对称二叉树
  15. Python env使用(virtualenv)
  16. ScreenToGif 使用教程
  17. Spring 配置文件
  18. 如何运行简单的scrapy
  19. linux CentOS7 安装spark
  20. 【BZOJ1001】[BeiJing2006]狼抓兔子 对偶图最短路

热门文章

  1. C#语法之特性
  2. MFC函数—SetRegistryKey
  3. php json_encode在CI框架中的使用细节
  4. css布局记录之双飞翼布局、圣杯布局
  5. 一.JDK版本切换批处理脚本
  6. leetcode916
  7. Mybatis的类型处理器
  8. 面向对象设计模式_享元模式(Flyweight Pattern)解读
  9. JSP (tomcat 内置对象)
  10. [基础架构]PeopleSoft Tuxedo 重要文件说明