【发布时间】:2013-08-20 02:50:03
【问题描述】:
所以我在 SVG 中有如下图像:
<image id="svgBackground" x="0px" y="0px" width="100%" height="100%" preserveAspectRatio="xMinYMin" xlink:href="backgrounds.png"/>
我希望浏览器以原始大小显示图像。我该怎么做?
【问题讨论】:
-
肯定把
width="100%"和height="100%"去掉,让浏览器处理? -
我已经尝试过了,但如果我这样做,图像根本不会显示。
-
preserveAspectRatio="none"?
标签: svg