CSS标题不会弹出 [英] CSS Header will not pop up
本文介绍了CSS标题不会弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
body {
text-align: center;
}
header {
height:100px;
background:black;
width:100px;
}
奇怪的是当我改变使用Backround的颜色:颜色:blah它会改变,但是标题没有背景颜色,可能是某些noob错误,如果这里没有问题我可以链接HTML。
Weird thing is when I change the color using Backround:color:"blah" it changes but the header does not have a backround color probably some noob mistake somewhere I can link the HTML after if there is no issue here.
推荐答案
首先,使用正确的名称r CSS属性:颜色
(表示foregroung)background-color
,background
,依此类推。
在写东西之前咨询参考资料怎么样? :-)
-SA
First of all, use correct names for CSS properties:color
(it means foregroung)background-color
,background
, and so on.
How about consulting reference sources before writing something? :-)
—SA
这篇关于CSS标题不会弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文