最佳答案
这对于纯 CSS 是不可能的。
不过,您可以使用两个 div 来获得这种效果。
<div class="outer">
<div class="inner">
text
</div>
</div>
.outer
{
background-color:blue;
padding:20px;
width:200px;
}
.inner
{
border:solid 1px white;
height:150px;
color:white;
}
关于html - CSS中边框的调整,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9617754/