主页

索引

模块索引

搜索页面

属性

Stroke 属性

SVG提供了一个范围广泛stroke 属性:

stroke
stroke-width
stroke-linecap
stroke-dasharray
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><g fill="none"><path stroke="red" d="M5 20 l215 0"/><path stroke="#00f" d="M5 40 l215 0"/><path stroke="#000" d="M5 60 l215 0"/></g></svg>
../../../_images/property_stroke1.svg
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><g fill="none" stroke="#000"><path stroke-width="2" d="M5 20 l215 0"/><path stroke-width="4" d="M5 40 l215 0"/><path stroke-width="6" d="M5 60 l215 0"/></g></svg>
../../../_images/property_stroke-width1.svg
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><g fill="none" stroke="#000" stroke-width="6"><path stroke-linecap="butt" d="M5 20 l215 0"/><path stroke-linecap="round" d="M5 40 l215 0"/><path stroke-linecap="square" d="M5 60 l215 0"/></g></svg>
../../../_images/property_stroke-linecap1.svg
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><g fill="none" stroke="#000" stroke-width="4"><path stroke-dasharray="5 5" d="M5 20 l215 0"/><path stroke-dasharray="10 10" d="M5 40 l215 0"/><path stroke-dasharray="20 10 5 5 5 10" d="M5 60 l215 0"/></g></svg>
../../../_images/property_stroke-dasharray1.svg

主页

索引

模块索引

搜索页面