<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ``` <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <title>site title</title> <style type="text/css"> div{font-size:30px;} .box1{ border: 10px solid deeppink; } .box2{ width: 100px; height: 200px; background-color: #fba; float: left; } .box3{ clear: both; } </style> </head> <body> <div class="box1"> <div class="box2">box2</div> <div class="box3">box3</div> </div> </body> </html> ``` ![](https://img.kancloud.cn/83/31/8331e64343e32261c9bbef6a11cbd017_1048x242.png) 將.box3你的內容box3去掉后效果,box3利用clear就撐起了整個父元素 ![](https://img.kancloud.cn/91/5c/915cce086cbfb9d2ae1203c1c0aa462d_1049x242.png) 通常情況下它是沒有影響的,但是如果設置了全局樣式,情況就變了 ``` div{ height:30px; } ``` 高度又變成了之前的情況了 那么這時我們就利用到了afte偽元素,給box1加偽元素,并設置為塊 ``` <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <title>site title</title> <style type="text/css"> div{font-size:30px;} .box1{ border: 10px solid deeppink; } .box2{ width: 100px; height: 300px; background-color: #fba; float: left; } .box1::after{ content:''; display:block; clear:both; } </style> </head> <body> <div class="box1"> <div class="box2">box2</div> </div> </body> </html> ``` ![](https://img.kancloud.cn/06/25/0625da54102289b0aaebb551dfcb4a16_1048x310.png) 完美!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看