div固定顶部和底部
2024-08-21 08:26:02
<!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>div固定</title>
<style type="text/css">
/*index.html footer*/
body #index_footer {
z-index: 999;
position: fixed;
_position: absolute;/*兼容IE6*/
_top: expression(offsetParent.scrollTop+document.documentElement.clientHeight-this.offsetHeight);/*兼容IE6*/
bottom: 0px;
padding: 0px 0px 10px;
background-color: #eeeeaa;
border-top:4px solid #e2e2e2;
width: 100%;
} /*index.html 成功添加*/
body #index_head {
z-index: 999;
position: fixed;
_position:absolute;/*兼容IE6*/
_top:expression(eval(document.documentElement.scrollTop));/*兼容IE6*/
width: 100%;
text-align: center;
}
body #index_successHint {
background-color: #ef0000;
width: 160px;
line-height: 30px;
border-radius: 8px;
margin:0 auto;
} .index_footer_Button {
padding: 27px 0px;
background-color: #AAA;
cursor: pointer;
}
</style>
</head>
<body>
<div id="index_head">
<div id="index_successHint">
<span style="margin-left: 5px;">成功添加</span>
</div>
</div>
<div id="index_footer">
<div style="float: right;width: 60px;text-align: center;color: #ffffff;">
<div class="index_footer_Button" id="addBtn" style="margin-bottom: 5px;">添加</div>
<div class="index_footer_Button" id="cancelBtn">取消</div>
</div>
</div>
</body>
</html>
最新文章
- inline-block 兼容性
- Visual Studio 2013启用AnkSVN
- leetcode4568
- python成长之路——第一天
- laravel框架总结(六) -- 门面(facades)
- perl脚本基础总结
- make命令--基础
- iOS Xcode 调试技巧 全局断点这样加才有意思
- 洛谷P1518 两只塔姆沃斯牛 The Tamworth Two
- The 5th Zhejiang Provincial Collegiate Programming Contest---ProblemF:Faster, Higher, Stronger
- openstack grizzly版cloud控制节点安装
- Populating Next Right Pointers in Each Node II 解答
- Yii2 国际化的问题 zh-CN
- Android菜鸟的成长笔记(5)——Android系统源代码你下载了吗?
- SQL基本查询_多表查询(实验三)
- 聊聊ThreadLocal原理以及使用场景-JAVA 8源码
- java 网络编程之TCP通信和简单的文件上传功能
- cookie的设置和获取
- 一. 优化小程序自身的Storage
- MyBatis-generator-Maven方式
热门文章
- 过千万、亿条数据的mysql表更新 mysql 线程状态
- Python爬虫基础(四)Requests库的使用
- (4.19)sql server中的事务模式(隐式事务,显式事务,自动提交事务)
- 求连续出现5次以上的值,并且取第5次所在id
- mysql 表的增删改查 修改表结构
- python 定义类 学习2
- centos shell脚本编程1 正则 shell脚本结构 read命令 date命令的用法 shell中的逻辑判断 if 判断文件、目录属性 shell数组简单用法 $( ) 和${ } 和$(( )) 与 sh -n sh -x sh -v 第三十五节课
- Jenkins的持续集成
- Selenium之firefox浏览器的启动
- 剑指offer-有序二维数组中的查找