Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SVG-将模式xLink背景图像拉伸到100%_Svg_Background Image - Fatal编程技术网

SVG-将模式xLink背景图像拉伸到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

如何将图案拉伸到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-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>