<polyline>
Baseline 广泛可用 *
<polyline>
SVG 元素是用于创建连接多个点的直线段的 SVG 基本形状。通常,polyline
用于创建开放形状,因为最后一个点不必连接到第一个点。有关闭合形状,请参阅 <polygon>
元素。
使用语境
属性
DOM 接口
此元素实现了 SVGPolylineElement
接口。
示例
html
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
<!-- Example of a polyline with the default fill -->
<polyline points="0,100 50,25 50,75 100,0" />
<!-- Example of the same polyline shape with stroke and no fill -->
<polyline points="100,100 150,25 150,75 200,0" fill="none" stroke="black" />
</svg>
规范
规范 |
---|
Scalable Vector Graphics (SVG) 2 # PolylineElement |
浏览器兼容性
加载中…