Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.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
Html 是否可以在SVG图像模式中放置像2x、3x和4x这样的高DPI图像?_Html_Css_Svg - Fatal编程技术网

Html 是否可以在SVG图像模式中放置像2x、3x和4x这样的高DPI图像?

Html 是否可以在SVG图像模式中放置像2x、3x和4x这样的高DPI图像?,html,css,svg,Html,Css,Svg,有没有办法支持SVG模式中的2x、3x和4x图像 *{ 保证金:0; 填充:0; } #化身{ 不透明度:1; 填充:url(#头像#uA0); } .阿凡达{ 位置:绝对位置; 溢出:可见; 宽度:38px; 高度:38px; 左:10px; 顶部:10px; } 支持HiDPI图像 您可以使用HTML 您可以使用HTML <pattern id="Avatar_A0" x="0" y="0" width="100%" height="100%"> <forei

有没有办法支持SVG模式中的2x、3x和4x图像

*{
保证金:0;
填充:0;
}
#化身{
不透明度:1;
填充:url(#头像#uA0);
}
.阿凡达{
位置:绝对位置;
溢出:可见;
宽度:38px;
高度:38px;
左:10px;
顶部:10px;
}

支持HiDPI图像
您可以使用HTML

您可以使用HTML

<pattern id="Avatar_A0" x="0" y="0" width="100%" height="100%">
    <foreignObject width="100%" height="100%">
        <img srcset="icon.png 1x, icon@2x.png 2x, icon@3x.png 3x"
             x="0" y="0" width="100%" height="100%"></image>
    </foreignObject>
</pattern>