设置线不会出现在背景色之上,请问是什么问题?谢谢,我有这个代码
<div class="setting-wrapper">
<div class="setting-line"></div
</div>
CSS
.setting-wrapper{
background-color:#E2E9E9;
position: absolute;
left:450px;
top:20px;
border:1px solid #dedede;
display:block;
width:500px;
height:400px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
border-radius:5px;
}
.setting-line{
margin-top:5px;
margin-bottom:5px;
width:500px;
border-top:solid #e6e6e6 1px;
}
最佳答案
如果<div class="setting-line"></div
不是复制/粘贴拼写错误,然后在结尾处缺少括号 DIV
.
但也许很难看出 #E2E9E9
之间的区别和 #e6e6e6
(取决于系统颜色深度和/或屏幕功能)。
关于css - 线条不会显示在背景颜色之上(CSS 问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6619010/