Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gahotx authored Aug 23, 2024
1 parent 017496f commit ac8a1aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/zh-cn/web/svg/attribute/stroke-width/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ svg {

```html
<svg viewBox="0 0 30 10" xmlns="http://www.w3.org/2000/svg">
<!-- 默认笔画宽度为 1 -->
<!-- 默认外轮廓宽度为 1 -->
<circle cx="5" cy="5" r="3" stroke="green" />

<!-- 使用数值设置笔画宽度 -->
<!-- 使用数值设置外轮廓宽度 -->
<circle cx="15" cy="5" r="3" stroke="green" stroke-width="3" />

<!-- 使用百分数设置笔画宽度 -->
<!-- 使用百分数设置外轮廓宽度 -->
<circle cx="25" cy="5" r="3" stroke="green" stroke-width="2%" />
</svg>
```
Expand Down

0 comments on commit ac8a1aa

Please sign in to comment.