前些天解决了firefox的div重叠:
www.blogjava.net/fl1429/archive/2009/06/29/284645.html
IE6解决办法:添加一个push层
css:
- * {
- margin: 0;
- }
- html, body {
- height: 100%;
- }
- .wrapper {
- min-height: 100%;
- height: auto !important;
- height: 100%;
- margin: 0 auto -4em;
- }
- .footer, .push {
- height: 4em;
- }
html:
- <html>
- <head>
- <link rel="stylesheet" href="layout.css" ... />
- </head>
- <body>
- <div class="wrapper">
- <p>Your website content here.</p>
- <div class="push"></div>
- </div>
- <div class="footer">
- <p>Copyright (c) 2008</p>
- </div>
- </body>
- </html>
ref:
http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
http://www.webjx.com/css/divcss-10042.html
posted on 2009-07-24 17:06
fl1429 阅读(1558)
评论(0) 编辑 收藏 所属分类:
Ajax