<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之旅 廣告
                1.絕對定位,left 50%, top 50%, margin-left, margin-top 各-50% ~~~ div { ? ?position:absolute; ? ?left:50%; ? ?top:50%; ? ?margin-left:-50%; ? ?margin-top:-50% } ~~~ 2.絕對定位,top,left 50%, transform: translate(-50%, -50%) ~~~ div { ? ?position:absolute; ? ?left:50%; ? ?top:50%; ? ?transform: translate(-50%, -50%); } ~~~ 3.絕對定位,top,bottom,left,right都為0,margin設為auto ~~~ .parent { position: relative; } .child { position: absolute; ? ?top: 0; ? ?bottom: 0; ? ?left: 0; ? ?right: 0; ? ?margin: auto; } ~~~ 4.flex布局,display:flex, justify-content,align-items都設為center ~~~ .parent { ? ?width: ?200px; ? ?height: ?200px; ? ?background-color: pink; ? ?display: ?flex; ? //當 flex 橫向排列時,align-item 指的是垂直方向 ? ?align-items: ?center; ? //當 flex 橫向排列時,justify-content 指的是橫向方向 ? ?justify-content: ?center; } ~~~ 5.grid布局,父元素設為display:grid,子元素 margin: auto ~~~ .box { ? ?width: 200px; ? ?height: 200px; ? ?border: 1px solid red; ? ?display: grid; } .children-box { ? ?width: 100px; ? ?height: 100px; ? ?background: yellow; ? ?margin: auto; } ~~~ 6.table-cell方法:父元素display: table-cell, 子元素display改成inline-block,或者margin:auto ~~~ .box { ? ?width: 200px; ? ?height: 200px; ? ?border: 1px solid red; ? ?display: table-cell; ? ?text-align: center; ? ?vertical-align: middle; } .children-box { ? ?width: 100px; ? ?height: 100px; ? ?background: yellow; ? ?display: inline-block;// 可以換成margin: auto; } ~~~
                  <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>

                              哎呀哎呀视频在线观看