标签: html css
enter image description here
当我更改整个页面的背景色时,它会起作用,但是当我更改特定的div容器背景色时,则不起作用
答案 0 :(得分:1)
backgtround颜色不变的原因是<div>中没有任何内容。如果您将html添加到<div>中,则会看到在css中设置的背景颜色。
<div>
html
css