<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] # 純grid > 第一個為對比圖 div結構2層, 其他7個結構 div 三層 ![](https://box.kancloud.cn/84743e24a75af02a4576616ea8865862_1032x556.PNG) ## 頁面布局 (此結構需三層div) > 第一個為對比圖,與其他7個結構不一樣 ``` <div class="container"> <div class="line"> <img src="images/1.png" /> <p>nihao小姐姐</p> </div> //div布局還需復制六個 <div class="line"> <div> <img src="images/1.png" /> <p>nihao小姐姐</p> </div> </div> ~~ ....X6 <div class="line"> ~~ </div> ``` ## css樣式 ### 第一種 ``` <style> img { width: 80px; height: 80px; } .container { margin: 100px; display: grid; grid-template-columns: repeat(4, 200px); grid-template-rows: 200px 200px; grid-gap: 1px; } .container .line { // width,height 清除網格線重疊 width: 200px; height: 200px; border: 1px solid #999; display: grid; } .line div { text-align: center; background:red; justify-self: center; align-self: center; } </style> ``` ### 第二種 ``` <style> img { width: 80px; height: 80px; } .container { margin: 100px; display: grid; grid-template-columns: repeat(4, 200px); grid-template-rows: 200px 200px; } .container .line { border: 1px solid #999; display: grid; //清除網格線重疊 margin-left: -1px; margin-top: -1px; } .line div { text-align: center; background:red; justify-self: center; align-self: center; } </style> ``` # div加flex布局 只需倆層div ![](https://box.kancloud.cn/52bae2a999c4a441e9fb0e50861095a5_1045x561.PNG) ## 頁面布局同上 ## css樣式 ``` <style> img { width: 80px; height: 80px; } .container { margin: 100px; display: grid; grid-template-columns: repeat(4, 200px); grid-template-rows: 200px 200px; } .container .line { border: 1px solid #999; display: grid; display: flex; justify-content: center; align-items: center; flex-direction: column; margin-left: -1px; margin-top: -1px; } .line div { text-align: center; background:red; justify-self: center; align-self: center; } </style> ```
                  <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>

                              哎呀哎呀视频在线观看