html - 如何用 CSS 圆整直线?
问题描述
我想用 CSS 对直线进行舍入。但我没有成功。我该怎么做?谢谢。
截图:
- 设计:https://imgur.com/RCuJOVw
- 我的 Css 代码:https://imgur.com/ssMLQkl
.steps {
margin-left: 80px;
margin-top: 100px;
display: inline-block;
position: relative;
&:before {
content: '';
position: absolute;
top: -130px;
right: 50px;
width: 30px;
height: 1px;
background-color: #eff0f1;
}
}
解决方案
border-top-right-radius
在您的边界上使用。
div {
width: 50px;
height: 100px;
border-top: 3px solid grey;
border-right: 3px solid grey;
border-top-right-radius: 15px;
}
<div></div>
推荐阅读
- python - 'flask run' 从源目录运行时找不到代码,而 'python -m flask run' 成功
- c# - 移动时在摄像机前生成预制件
- php - 如何使用 codeigniter 将循环字段数据插入数据库
- angular6 - 如何发布动态表单数据?
- c++ - c ++ const全局变量的链接?
- reactjs - 为什么
- visual-studio - 为什么安装 Wear OS Intel x86 Atom 系统映像 v2 失败
- ionic-framework - Ionic 4 - 找不到管道
- ruby-on-rails - Rails 创建额外的创建动作并将新的重定向到它
- heroku - 向我的 graphql API 发起查询时出现网络错误