How to set a stroke-width:1 on only certain sides of SVG shapes?

前端 未结 3 1510

Setting a stroke-width: 1 on a element in SVG places a stroke on every side of the rectangle.

How does one place a stroke width on only thr

3条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 07:17

    You could use a polyline for the three stroked sides, and just not put the stroke on the rectangle at all. I don't think SVG lets you apply different strokes to different parts of a path/shape, so you need to use multiple objects to get the same effect.

提交回复
热议问题