logo
  • 教程列表
  • SO官方文档
  • 线
    • 中风 -dasharray 虚线画
    • 使用 stroke-linecap 的线帽替代方案
    • 使用对角红线画十字
  1. StackOverflow 文档
  2. SVG 教程
  3. 线
  4. 使用对角红线画十字

使用对角红线画十字

Created: November-22, 2018

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <line x1="10" y1="10" x2="100" y2="100" stroke="red" stroke-width="10" />
    <line x1="100" y1="10" x2="10" y2="100" stroke="red" stroke-width="10" />
</svg>

结果:

StackOverflow 文档

  • 使用 stroke-linecap 的线帽替代方案

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明