我在html中添加了样式更改,但令人惊讶的是它在FireFox中不起作用但在IE中运行良好,会出现什么问题?
<html>
<head>
<style>
body, h1, h2, h3, h4{font-size=24px;}
</style>
</head>
<body>
<br>
<h3>From - 456 To - a7890: 26 mins - 20.6 km</h3>
<h4>Spot 1 To Spot B</h4>
<hr>
<br>heading towards east for 40 miles<hr>
</body>
</html>
答案 0 :(得分:2)
您不能在CSS中使用equals符号。这就是你想要的
<style>
body, h1, h2, h3, h4{font-size:24px;}
</style>
答案 1 :(得分:1)
这是无效的CSS。而不是=
使用:
<html>
<head>
<style>
body, h1, h2, h3, h4 {font-size:24px;}
</style>
</head>
<body>
<br>
<h3>From - 456 To - a7890: 26 mins - 20.6 km</h3>
<h4>Spot 1 To Spot B</h4>
<hr>
<br>heading towards east for 40 miles<hr>
</body>
</html>
&#13;