SVG-将模式xLink背景图像拉伸到100%
如何将图案拉伸到100%宽度和高度 小提琴SVG-将模式xLink背景图像拉伸到100%,svg,background-image,Svg,Background Image,如何将图案拉伸到100%宽度和高度 小提琴 将PreserveSpectratio属性添加到图像元素。 <pattern patternUnits="userSpaceOnUse" id="pat1" x="0" y="0" width="100%" height="100%"> <image width="100%" height="100%" xlink:href="http://img.wallpaperstock.net:81/fire-reflecti
将PreserveSpectratio属性添加到图像元素。
<pattern patternUnits="userSpaceOnUse" id="pat1" x="0" y="0" width="100%" height="100%">
<image width="100%" height="100%" xlink:href="http://img.wallpaperstock.net:81/fire-reflection-wallpapers_12396_1280x960.jpg" />
</pattern>
<pattern patternUnits="userSpaceOnUse" id="pat1" x="0" y="0" width="100%" height="100%">
<image preserveAspectRatio="none" width="100%" height="100%" xlink:href="http://img.wallpaperstock.net:81/fire-reflection-wallpapers_12396_1280x960.jpg" />
</pattern>