:在Chrome中灰色背景颜色显示为白色之前

时间:2018-01-31 17:29:16

标签: html css google-chrome

我在带有背景颜色:before的div上使用#f2f1ef。它在Safari,Firefox,Edge,IE11中运行良好,但背景颜色在Chrome浏览器中显示为白色。

Screen shot

当我检查元素时,它正在计算正确的背景颜色但显示为白色?另外,如果我将十六进制代码更改为另一种颜色可以吗?



.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;
&#13;
&#13;

0 个答案:

没有答案