想问一下这个红箭头指的地方用css 怎么写 这个小细节如何实现比较好 呢 能贴css代码最好
这就是一个圆或者半圆,先整个圆,塞进去
width 10px;
height:10px;
border-radius:10px;
/border-radius:0 10px 10px 0/
二选一
绝对定位进去
线条呢
.box {
width: 200px;
height: 50px;
background: radial-gradient(circle at 0 50%, transparent 15px, white 16px) top left,
radial-gradient(circle at 100% 50%, transparent 15px, white 16px) right top;
background-size: 50% 100%;
background-repeat: no-repeat;
}
.box1 {
width: 300px;
height: 50px;
text-align: center;
padding-top: 30px;
border-bottom: 2px dashed #fcf51b;
}
at句 在safire里不支持 这个兼容嘛
div的边框写那条线。
两边的半圆用div的befort after 伪元素分别写一个圆定位在左右(黄色的半圆和圆没什么区别,视觉效果是一样的)