css中的背景颜色没有显示 [英] background color in css not showing up
本文介绍了css中的背景颜色没有显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的背景颜色有问题,它没有显示出来我希望它是红色的这是代码 https://jsfiddle.net/yPX5Q/22/ 0000
i have a problem with my background color it's not showing up
i want it to be red
here's the code https://jsfiddle.net/yPX5Q/22/ 0000
更新:问题已解决,但我还有另一个问题:当我调整浏览器大小时,block2 消失了,我想将身体居中,但导航的黑色背景受到身体任何帮助的限制
Update: the problem is fixed but i have another ones : when i resize the browser block2 disapears and i want to center the body but the black baground of nav is limited by body any help
推荐答案
您需要设置 width
和 height
以使其工作.
You need to set a width
and height
to make it work.
这篇关于css中的背景颜色没有显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文