页面元素固定在页面底部的纯css代码(兼容IE6)
2024-08-25 00:12:35
<!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>
最新文章
- Django--自定义用户认证
- Eclipse中怎么安装TestNG单元测试框架
- xmimd的第十天笔记
- iOS:个性化UITextView(缩进,行距,铺满)
- java操作xml
- CMake实践(4)
- Objective-C运行时编程 - 实现自动化description方法的思路及代码示例
- iOS 集合的深复制与浅复制
- select into from 和 insert into select 的用法和区别(转)
- Jquery实现鼠标移到某个对象,弹出显示层。
- HDU6166-Senior Pan-Dijkstra迪杰斯特拉算法(添加超源点,超汇点)+二进制划分集合-2017多校Team09
- ( ! ) 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
- 异常-----freemarker.core.ParseException: Unexpected end of file reached
- LeetCode-101.对称二叉树
- Python env使用(virtualenv)
- ScreenToGif 使用教程
- Spring 配置文件
- 如何运行简单的scrapy
- linux CentOS7 安装spark
- 【BZOJ1001】[BeiJing2006]狼抓兔子 对偶图最短路