【发布时间】:2021-12-30 13:25:18
【问题描述】:
.test02 {
text-align: center;
color: #fff;
background-color: orange;
border-top-right-radius: 8px;
border-top-left-radius: 8px;
padding: 0.2rem 0;
}
.test {
border: 2px solid orange;
padding: 1rem;
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
height: 5rem;
}
body {
background: url('https://images.ctfassets.net/hrltx12pl8hq/8MpEm5OxWXiNqLvWzCYpW/24f02cfe391aa8f25845de858982d449/shutterstock_749707636__1__copy.jpg?fit=fill&w=840&h=350');
}
<div class="test02">If you'd like to do it now, please check box below</div>
<div class="test">
</div>
我知道我想为此制作一个剪辑路径,但我不知道如何做。这种类型的 CSS 样式对我来说有点高级。我可以做一个很好的边框,但不知道如果有意义的话,你怎么能把边框从里到外做。
【问题讨论】:
-
您不需要剪辑路径。您需要使用橙色图像作为背景。
-
看起来您正在尝试使用 CSS 构建功能区
-
@Azu 不知道你用橙色作为背景色是什么意思。