这组HTML代码没问题吧???为啥添加了后没反应?

来源:百度知道 编辑:UC知道 时间:2024/05/30 06:16:04
h1
{
color: #000000;
font-family: serif;
font-size: 20pt;
text-align: center;
font-weight: bold;
font-style: normal;
}

h2
{
color: #0000FF;
font-family: serif;
font-weight: bold;
font-size: 18pt;
text-align: center;
font-style: normal;
}

h3
{
color: #000000;
font-family: serif;
font-size: 16pt;
text-align: left;
font-weight: normal;
font-style: normal;
}

li
{
color: #000000;
font-family: sans-serif;
font-size: 14pt;
text-align: left;
}

p
{
color: #00008B;
font-family: sans-serif;
font-size: 14pt;
text-align: left;
font-style: italic;
}

没问题,建议进行以下方面的检查:
1、检查有没有和页面进行连接。
2、检查标签是否与要进行CSS页面的标签匹配。
3、检查li标签路径,有时会搞错,如ul.li等等

这是css不是html