我在带有背景颜色:before
的div上使用#f2f1ef
。它在Safari,Firefox,Edge,IE11中运行良好,但背景颜色在Chrome浏览器中显示为白色。
当我检查元素时,它正在计算正确的背景颜色但显示为白色?另外,如果我将十六进制代码更改为另一种颜色可以吗?
.bullet-container:before {
content: '';
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 17%;
background-color: #f2f1ef;
}

<div class="bullet-container">
Content Goes Here
</div>
&#13;