我想把这个边框放在我的 html 代码中:
我想要您可以在图片中看到的边框,所以我使用了我的 CSS 代码:
border: 1px outset #999999;
border-top:none;
border-left: none;
结果不一样。任何人都可以帮助重现相同的效果
最佳答案
尝试使用 box-shadow
box-shadow: [horizontal offset] [vertical offset] [blur radius] [optional spread radius] [color];
像这样:
div {
width: 300px;
height: 100px;
background: white;
box-shadow: 2px 2px 2px rgba(0,0,0,0.25);
}
<div></div>
关于html - 如何使用 css 创建此边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44654628/