标记宽度
markerWidth
属性表示在根据 viewBox
和 preserveAspectRatio
属性渲染 <marker>
元素时,该元素将被适应的视口的宽度。
你可以将此属性与以下 SVG 元素一起使用
用法说明
值 |
<length-percentage> | <number> |
---|---|
默认值 | 3 |
可动画的 | 是 |
<length-percentage>
-
此值定义了标记的绝对宽度或相对宽度。相对值指的是通过
viewBox
和preserveAspectRatio
属性指定的宽度。 <number>
-
此值定义了标记在由
markerUnits
属性定义的单位下的宽度。
值为零会禁用元素的渲染,负值是错误的。
规范
规范 |
---|
Scalable Vector Graphics (SVG) 2 # MarkerWidthAttribute |
浏览器兼容性
加载中…