<strike id="3tkic"><sup id="3tkic"></sup></strike>

  1. <ul id="3tkic"></ul>
      <b id="3tkic"><legend id="3tkic"></legend></b>
      <b id="3tkic"><meter id="3tkic"></meter></b>

    • <strike id="3tkic"></strike>

      <blockquote id="3tkic"></blockquote>

    • 亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l

      最優(yōu)方法清除浮動

      2012/3/10 9:24:35   閱讀:2604    發(fā)布者:2604

      方法真的很簡單,只要為需要清浮動的標(biāo)簽加上overflow這個屬性。

      CSS代碼

      ul{
      list-style:none;
      height:auto;
      margin:0;p
      adding:0;
      background-color:#436973;
      }
      li{
      float:left;
      width:80px;
      height:80px;
      background-color:#83B1DF;
      }
      .demo{
      clear:both;
      border:1px solid #FF00FF;
      margin-bottom:5px;
      }
      .overflow{
      overflow:auto;
      zoom:1;
      background-color:#43FF73;
      }
      ul{
      list-style:none;
      height:auto;
      margin:0;
      padding:0;
      background-color:#436973;
      }
      li{
      float:left;
      width:80px;
      height:80px;
      background-color:#83B1DF;
      }
      .demo{
      clear:both;
      border:1px solid #FF00FF;
      margin-bottom:5px;
      }
      .overflow{
      overflow:auto;
      zoom:1;
      background-color:#43FF73;
      }

      HTML代碼



      • 1
      • 2
      • 3
      • 4
      • 5
      • 6
      • 7
      • 8
      • 9




      • 1
      • 2
      • 3
      • 4
      • 5
      • 6
      • 7
      • 8
      • 9

      注:忘了一個很重要的內(nèi)容,并不是所有的overflow屬性都可起來一樣的效果,比如visible屬性就只能對IE起作用。這樣的話就有一個問題啦,如果要有高度,而且內(nèi)容超出高度的時候,定義auto或hidden都可能會有一些不想要的效果出現(xiàn)。這里提供一個解決方案:對于IE6及以下版本的IE,可以直接定義高度;對于IE7、FF、OP,可定義min-height。

      CSS代碼

      overflow
      {
      height:auto;
      _height:200px;
      min-height:200px;
      verflow:auto;
      zoom:1;
      _overflow:visible;
      }

      亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l
      <strike id="3tkic"><sup id="3tkic"></sup></strike>

      1. <ul id="3tkic"></ul>
          <b id="3tkic"><legend id="3tkic"></legend></b>
          <b id="3tkic"><meter id="3tkic"></meter></b>

        • <strike id="3tkic"></strike>

          <blockquote id="3tkic"></blockquote>

        • 晋宁县| 花莲县| 临湘市| 泸溪县| 镇宁| 东乡| 邢台市| 健康| 民乐县| 蓬安县| 丹棱县| 宣化县| 县级市| 五大连池市| 满城县| 鸡西市| 潞西市| 杭锦旗| 沾化县| 石首市| 江川县| 北流市| 慈利县| 房山区| 通辽市| 太和县| 亚东县| 辉南县| 大荔县| 新绛县| 涪陵区| 嘉鱼县| 萨迦县| 栾城县| 页游| 永嘉县| 双城市| 绿春县| 屯昌县| 达日县| 义乌市|