我试过这段代码
.itemselected {
Width: 150px;
height: 150px;
border-bottom: 1px solid #111;
}
但是当我使用它时,它看起来很奇怪,就像整个东西周围有一个边框,我只想要底部的边框。
最佳答案
.itemselected {
Width: 150px;
height: 150px;
border-bottom: 1px solid #111;
border-top: 0;
border-left: 0;
border-right: 0;
}
这应该可以解决它,我之前遇到过同样的问题,但是当我使用该代码将其他边框设置为 0 时,它工作得很好 :)
关于css - 试图让边界留在底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39557469/