使用CSS样式划一个半圆
微wx笑
2022-03-18【前端开发】
125
4
0关键字:
html<div class="div_circle"样式:.div_circle { width:400px; height:100px; border:1px solid color:#f5f8fa}.div_circle:before { content: ''; positi
html
1 | <div class="div_circle" |
样式:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | .div_circle { width : 400px ; height : 100px ; border : 1px solid color : #f5f8fa } .div_circle:before { content : '' ; position : absolute ; width : 36px ; height : 12px ; border : 1px solid #2e6da4 ; border-radius: 0 0 50% 50% / 0 0 100% 100% ; border-top : 1px solid #f5f8fa ; top : -5px ; background : #fff ; left : 11px ; } |
效果:
本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/blog/front/2022-03-18/1098.html