• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • SVG 曲线

    SVG 曲线- <polyline>

    实例 1

    <polyline>元素是用于创建任何只有直线的形状:

    Sorry, your browser does not support inline SVG.

    下面是SVG代码:

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
      <polyline points="20,20 40,25 60,40 80,120 120,140 200,180"
      style="fill:none;stroke:black;stroke-width:3" />
    </svg>

    实例 2

    只有直线的另一个例子:

    Sorry, your browser does not support inline SVG.

    下面是SVG代码:

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
      <polyline points="0,40 40,40 40,80 80,80 80,120 120,120 120,160" style="fill:white;stroke:red;stroke-width:4" />
    </svg>

    上篇:SVG 多边形

    下篇:SVG 路径