【发布时间】:2016-11-07 04:48:08
【问题描述】:
我在 Chrome 开发者工具中发现了很多关于灰色样式的问题,但没有一个能描述我的奇怪行为。我在 CSS 文件中有简单的类样式。出于某种原因,我可以编辑其中一个,但不能编辑另一个:
CSS 文件:
.result {
background-color: #000;
width: 100%;
height: 100%;
position: absolute;
z-index: 100;
}
.result_image {
height: 80%;
overflow: hidden;
}
.result_text {
font-size: 13.6px;
margin-left: 5px;
font-weight: bold;
height: 20%;
}
HTML:
<div class="result">
<div class="result_image"><img src="..."></div>
<div class="result_text">Some text</div>
</div>
正如您在屏幕截图中看到的,我可以编辑 div class="result_image",但不能编辑 div class="result_text"。我认为问题与 Chrome 声称灰色样式来自样式标签有关,但两种样式都在文件“qb1.core.css”中。
【问题讨论】:
标签: css google-chrome developer-tools