<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] # 需求 共4列,首列寬度固定為200px,其余3列均分剩余寬度,每列間距10px <br> <br> # 實現 * display: grid 實現 * display: flex 實現 * position: aboslute + float 實現 * position: aboslute + float +非calc實現 <br> <br> # 難點 對于不使用 flex、grid 以及 css3 特性 calc 而言,實現多列自適應均勻分布只能是百分比。 <br> 百分比均分后間距的均分,這里參考了 bootstrap 的實現方式。 <br> <br> # 代碼 HTML: ``` // pug 模板引擎 div.g-grid - for(var i=0; i<4; i++) div.g-item #{i} div.g-flex - for(var i=0; i<4; i++) div.g-item #{i} div.g-position - for(var i=0; i<4; i++) div.g-item #{i} div.g-justify div.g-left 0 div.g-col div.g-row - for(var i=1; i<4; i++) div.g-item-box div.g-item #{i} ``` SCSS: ``` h2 { font-size: 28px; text-align: center; color: #fff; background: #009688; line-height: 2; } .g-left, .g-item { background: #3f51b5; line-height: 200px; color: #fff; text-align: center; font-size: 24px; } .g-grid { height: 200px; background: #ff9800; display: grid; grid-template-columns: 200px repeat(3, 1fr); grid-column-gap: 10px; margin-bottom: 20px; } .g-flex { height: 200px; background: #ff9800; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; margin-bottom: 20px; .g-item { flex: 0 1 calc((100% - 200px - 30px) / 3); } .g-item:first-child { flex: 0 1 200px; } } .g-position { position: relative; height: 200px; background: #ff9800; margin-bottom: 20px; .g-item { float: left; width: calc((100% - 200px - 30px) / 3); margin-left: 10px; } .g-item:nth-child(2) { float: left; width: calc((100% - 200px - 30px) / 3); margin-left: 210px; } .g-item:first-child { position: absolute; top: 0; left: 0; width: 200px; height: 200px; float: unset; margin-left: unset; } } .g-justify { position: relative; height: 200px; background: #ff9800; margin-bottom: 20px; .g-col, .g-row, .g-item-box { box-sizing: border-box; } .g-left { position: absolute; top: 0; left: 0; width: 200px; height: 200px; } .g-row { margin-right: -5px; margin-left: -5px; } .g-col { position: absolute; top: 0; left: 210px; right: 0; height: 200px; overflow: hidden; &:before, &:after { display: table; content: " "; } &:after { clear: both; } .g-item-box { position: relative; float: left; width: 33.33%; padding-left: 5px; padding-right: 5px; } } } ``` # 參考資料 [CSS Inspiration -- CSS靈感](https://chokcoco.github.io/CSS-Inspiration/#/./layout/single-column-isometric)
                  <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>

                              哎呀哎呀视频在线观看