<address id="bbrpp"><listing id="bbrpp"><meter id="bbrpp"></meter></listing></address>
<form id="bbrpp"><th id="bbrpp"><th id="bbrpp"></th></th></form>

      <strike id="bbrpp"><p id="bbrpp"><dl id="bbrpp"></dl></p></strike>
        <noframes id="bbrpp"><address id="bbrpp"></address>
        <form id="bbrpp"></form>
        <noframes id="bbrpp"><address id="bbrpp"><nobr id="bbrpp"></nobr></address>
          <noframes id="bbrpp"><form id="bbrpp"><th id="bbrpp"></th></form>

          云南網站建設創新企業 昆明多彩網絡公司

          |網頁對話|電話:0871-63215311

          清除浮動的層高度設置了0,為什么還有高度?

          來源:昆明網絡公司 日期:2010-09-14 閱讀: 發表評論

          經常使用浮動布局會不可避免的要使用到清除浮動的clear:both屬性,但是如果想清除浮動的層只具備清除浮動而無其他屬性(比如高度為0)的就需要設置一些屬性了

          使用方法如:<div class="claer"></div>

          css中的定義:.clear{ clear: both; margin: 0; padding: 0; height: 0; font-size: 0; line-height: 0; overflow: hidden}

          注意margin和padding設置成0是為了放置清除層繼承了父屬性導致大于零的情況出現,而height設置成0也是一個保守設置,font-size:0的設置是為了清除body設置的字體類型和大小,如果不設置的話,就算清除層中沒有文字也會將層撐開,后面的line-height:0;overflow: hidden都是保守設置,防止意外的屬性繼承發生。

          發表評論評論列表(有 條評論)

          網頁對話 0871-63215311
          国产无码字幕在线_碰超免费人妻中文字幕_先锋亚洲精品资源_亚洲人妻电影播放