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
Html 为svg路径元素指定边框_Html_Svg - Fatal编程技术网

Html 为svg路径元素指定边框

Html 为svg路径元素指定边框,html,svg,Html,Svg,我正在尝试使用stroke属性为svg路径元素添加边框,但它并没有在所有四个边框上绘制边框。知道如何在所有四个边框上绘制边框吗 <!DOCTYPE html> <html> <body> <h1>My first SVG</h1> <svg > <path fill="rgba(103,103,103,.35)" d="M 149.5 8 L 149.5 40 316.5 40 316.5 8" stroke-wi

我正在尝试使用stroke属性为svg路径元素添加边框,但它并没有在所有四个边框上绘制边框。知道如何在所有四个边框上绘制边框吗

<!DOCTYPE html>
<html>
<body>

<h1>My first SVG</h1>

<svg >
<path fill="rgba(103,103,103,.35)" d="M 149.5 8 L 149.5 40 316.5 40 316.5 8" stroke-width="3" stroke='#3fa9f5' ></path>
</svg> 



</body>
</html>

我的第一个SVG

您似乎忘记了使用
Z
之类的工具关闭路径


我们可以不用z参数来做吗。Actalu我无法编辑z参数,或者如何将z参数添加到现有svg路径元素?