【问题标题】:Issue with SVG in IE with max-width最大宽度的 IE 中的 SVG 问题
【发布时间】:2013-06-25 13:37:32
【问题描述】:

所以我不确定这是一个错误还是我做错了什么..

在 SVG 中使用 max-width 时,图像在 IE 9,10 中会失真

下面的示例(当然必须在 IE 中查看...)

http://codepen.io/Unroku/pen/nEgza

【问题讨论】:

    标签: html css internet-explorer svg


    【解决方案1】:

    同时设置最大高度。

    .papa {
      width: 250px;
    }
    
    .mama {
      max-width: 250px; 
      max-height: 250px;
    }
    img {
      vertical-align: top;
    }
    body {
      padding: 20px; 
    }
    

    【讨论】:

    猜你喜欢
    • 2015-08-16
    • 2015-09-01
    • 2014-09-05
    • 2014-06-26
    • 1970-01-01
    • 2011-03-23
    • 2018-09-03
    • 2015-06-19
    • 2015-07-25
    相关资源
    最近更新 更多