<分区>
我怎样才能得到这种边框?这个 20px 破折号和 20px 破折号之间的间距。没有自定义背景文件甚至可能吗?我能得到的最接近的是这样的:
.element {
width: 600px;
height: 300px;
border-radius: 45px;
background-image: linear-gradient(to right, red 50%, white 50%);
background-position: top;
background-size: 10px 1px;
background-repeat: repeat-x;
}
<div class="element">
TEXT TEXT
</div>