html - 在html中画线
解决方案
<svg height="210" width="500">
<line x1="0" y1="100" x2="200" y2="100" style="stroke:rgb(255,0,0);stroke-width:2" />
<line x1="200" y1="50" x2="200" y2="150" style="stroke:rgb(255,250,0);stroke-width:2" />
<line x1="200" y1="50" x2="300" y2="50" style="stroke:rgb(255,0,0);stroke-width:2" />
<line x1="200" y1="150" x2="300" y2="150" style="stroke:rgb(255,0,0);stroke-width:2" />
</svg>
推荐阅读
- php - 在 Laravel 的控制器路由中传递一个数组
- npm - `npm publish` 忽略 .npmignore 的新增内容
- node.js - 在 MongoDB 中执行子文档查询时返回父文档元素
- php - 使用 PHP 将 CSV 文件上传到 SQL Server 的问题
- excel - 数字转换的原因 - Excel vs google sheet
- javascript - 如何在 JavaScript 中缩短 dataurl 或将其转换回 png
- javascript - django.http.request.RawPostDataException:从请求的数据流中读取后,您无法访问正文
- ruby-on-rails - Rails with Grape API - params 中的关系 id 作为过滤器
- c - 如何解决这个 UTF-8 编码 C 问题?
- email - 使用 Spidermon 和 Amazon SES 发送电子邮件