隨筆-167  評論-65  文章-0  trackbacks-0
          前些天解決了firefox的div重疊:
          www.aygfsteel.com/fl1429/archive/2009/06/29/284645.html

          IE6解決辦法:添加一個push層
          css:
          1. * {
          2.     margin: 0;
          3. }
          4. html, body {
          5.     height: 100%;
          6. }
          7. .wrapper {
          8.     min-height: 100%;
          9.     height: auto !important;
          10.     height: 100%;
          11.     margin: 0 auto -4em;
          12. }
          13. .footer, .push {
          14.     height: 4em;
          15. }

          html:
          1. <html>
          2.     <head>
          3.         <link rel="stylesheet" href="layout.css" ... />
          4.     </head>
          5.     <body>
          6.         <div class="wrapper">
          7.             <p>Your website content here.</p>
          8.             <div class="push"></div>
          9.         </div>
          10.         <div class="footer">
          11.             <p>Copyright (c) 2008</p>
          12.         </div>
          13.     </body>
          14. </html>
          ref:
          http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
          http://www.webjx.com/css/divcss-10042.html







          write by feng
          posted on 2009-07-24 17:06 fl1429 閱讀(1565) 評論(0)  編輯  收藏 所屬分類: Ajax
          已訪問數(shù):
          free counters
          主站蜘蛛池模板: 普格县| 聂荣县| 福贡县| 海南省| 开封县| 临泉县| 德格县| 汝南县| 江川县| 乌苏市| 华容县| 从化市| 清原| 铁力市| 烟台市| 凉山| 北辰区| 清徐县| 武乡县| 庆城县| 英德市| 随州市| 宝应县| 印江| 紫云| 长垣县| 河北区| 三亚市| 甘孜| 沁阳市| 嵩明县| 汝阳县| 永和县| 周宁县| 读书| 安泽县| 扶绥县| 正安县| 平谷区| 牙克石市| 个旧市|