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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # flex布局下img圖片變形的解決方法 # flex布局下img圖片變形的解決方法 0.4522018.08.10 22:31:46字數 215閱讀 15,570 ![](https://upload-images.jianshu.io/upload_images/11028300-f359f10678329788.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/375/format/webp) 圖片正常效果 ![](https://upload-images.jianshu.io/upload_images/11028300-f4d782bdf274aa40.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/375/format/webp) 圖片變形效果 ## 一、flex-shrink: 0 給 img 設置`flex-shrink: 0;` flex-shrink 的默認值為1,如果沒有顯示定義該屬性,將會自動按照默認值1在所有因子相加之后計算比率來進行空間收縮。設置為0表示不收縮。 flex 元素僅在默認寬度之和大于容器的時候才會發生收縮,其收縮的大小是依據 flex-shrink 的值。注意:如果元素不是彈性盒對象的元素,則 flex-shrink 屬性不起作用。 缺點:僅兼容IE11 ## 二、height: 100% 在父元素沒有設置高度的情況下,給圖片設置`height: 100%;` ## 三、外層div標簽包裹 用div標簽包裹圖片,這種方案比較通用,缺點:產生無用標簽。 6人點贊
                  <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>

                              哎呀哎呀视频在线观看