- 浏览: 128457 次
- 性别:
- 来自: 福建
文章分类
- 全部博客 (105)
- 数据库 (4)
- hibernate (4)
- css3 (2)
- 前端设计 (13)
- struts (6)
- HTML5 (1)
- jQuery (16)
- JDBC (3)
- spring (6)
- 娱乐 (1)
- MyEclipse (2)
- oracle (4)
- javascript (10)
- ibatis (2)
- log4j (1)
- css (16)
- java (13)
- IText (1)
- IDE (1)
- C3P0 (1)
- ssi (1)
- IO (1)
- jsp (1)
- JSTL (1)
- JXL (1)
- ssh (1)
- ajax (2)
- struts2 (1)
- html (1)
- 正则表达式 (1)
- 非技术 (1)
- Properties (1)
- Tomcat (1)
- 电大 (0)
- test (0)
最新评论
-
yejq:
收藏~~
使用 Ctrl + Enter 提交表单
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>纯CSS兼容IE6的模拟的fixed效果</title> <style> * { margin:0; padding:0; } html, body { height:100%; overflow:hidden; } .page { height:100%; overflow:auto; } .floatbar { position:absolute; bottom:0; left:2%; border:1px solid #ccc; background:#06c; color:#fff; height:30px; width:95%; } </style> </head> <body> <!--此处page的div模拟body的表现--> <div class="page"> <div style="height:1500px">内容区</div> </div> <!--/此处page的div模拟body的表现--> <div class="floatbar">模拟的固定fixed效果 </div> </body> </html>
绝对底部效果:
<!DOCTYPE> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>绝对底部</title> <style type="text/css"> * { margin:0; padding:0; } html, body { height:100%; } .wrapper { min-height:100%; _height:100%; } .body { padding-bottom:100px; } .footer { margin-top:-100px; height:100px; background:red; } </style> </head> <body> <div class="wrapper"> <div class="body"> <script type="text/javascript"> for(var i=0; i<10; i++){ //可增加或减少i值 document.write(i+"<br />"); } </script> </div> </div> <div class="footer"> footer </div> </body> </html>
发表评论
-
CSS的50个代码片段
2013-07-02 14:59 33801.css全局 html, body, div, s ... -
CSS命名规范中英文对照表【转载】
2012-12-28 14:34 973一、样式文件命名规范 主要的 master.css布局, ... -
CSS命名规范
2012-12-28 14:18 927热点:hot 新闻:news下载:download子导航:s ... -
非常有用的CSS模板【转载】
2012-12-24 16:10 857CSS Reset (CSS固定样板) /* h ... -
html布局面试题
2012-12-17 17:29 1782效果图: <!DOCTYPE html ... -
2012旺铺导航菜单自定义
2012-12-13 16:28 17651.修改导航链接文字的背景色 .skin-box-bd .l ... -
css实现强制不换行/自动换行/强制换行
2012-10-08 11:20 754强制不换行 div{ white-space:now ... -
完美的解决IE6下fixed定位抖动问题
2012-07-21 21:58 1313body{_position:absolute; _to ... -
非常有用的CSS模板
2012-07-19 14:15 792CSS Reset (CSS固定样板): /* htt ... -
让DIV固定在浏览器窗口的底部(兼容IE6)
2012-07-03 09:16 3298<!DOCTYPE html PUBLIC &qu ... -
CSS实现背景透明,文字不透明(各浏览器兼容)
2012-06-28 10:24 932css: body{ background-image ... -
CSS强制英文、中文换行与不换行
2012-06-27 17:33 834CSS强制英文、中文换行与不换行[转载] .p1 ... -
纯css模拟淘宝详细页面底部固定
2012-05-30 15:57 1511<!DOCTYPE html PUBLIC &qu ... -
纯Css 背景色透明,内容不透明之方法。
2012-05-03 10:20 2732纯Css 背景色透明,内容不透明之方法 <! ... -
CSS的命名标准
2012-05-02 12:00 0CSS的命名标准 (一) ... -
总结下css的一些hack
2012-04-24 11:24 809总结下css的一些hack【转载】 color:red ...
相关推荐
CSS完美兼容IE6_IE7_FF的通用方法
(十年积累)div+css_完全兼容ie6_ie7_IE8_IE9_和firefox方法.doc\(十年积累)div+css_完全兼容ie6_ie7_IE8_IE9_和firefox方法.doc
纯css兼容IE6的fixed定位不上下晃动!
IE6_IE7_IE8浏览器的 CSS样式 兼容速查表
模仿懒人图库二级导航,纯css二级导航 兼容ie6欢迎下载
某些css属性不兼容ie9,引入此js可以解决部分问题,共享资源
兼容ie6、ie7、ie8、ie9、Chrome、Firefox等主流浏览器,轻量简洁容易上手使用,是web开发、学习的必备之选。
div+css兼容ie6ie7ie8ie9和FireFoxChrome等浏览器方法[借鉴].pdf
IE6, IE7, IE8 CSS 兼容速查表
纯css下拉菜单兼容主流浏览器IE6+
让CSS兼容IE和Firefox的技巧集合,有了它IE不在是bug 嘿嘿
div css完美兼容IE6,IE7,FF的通用方法说明。
纯CSS3 3D太空飞船动画效果_支持多视角动画演示代码
CSS兼容IE6,IE7和FF的总结 . 区别IE6与FF: background:orange;*background:blue; 区别IE6与IE7: background:green !important;background:blue; 区别IE7与FF: background:orange; *background:green; ...
这是一个css3模糊演示效果,几行css代码即可实现。除了在firefox、chrome、opera下完美显示,同时提供兼容IE的方法。 可以用于传统PC端,移动端更没问题。 关注明锋工作室,关注UI设计和web前端开发。
纯css3模拟风车,利用css3的动画特性实现