由于某些奇怪的原因,当我尝试使用 css 中的背景设置此 html 页面的样式时,什么也没有出现。 关于如何修复的任何想法
-谢谢
<html>
<body>
<title>Test</title>
<b><font color="#F91212"><center>Test</center></font></b>
<br><b><center><font color="#FF0000">Have Fun!</font></center></b></br>
<br><b><font color="#FF0000"><center><a href="">Join now for free by clicking here</a> </center></font></b></br>
<br><center><img src="test.jpg"></img></center></br>
<style>
body {background-color:#b0c4de;}
</style>
</body>
</html>
最佳答案
它应该看起来像这样(注意我将 style 标签移到了 head 标签中):
<head>
<style>
body{
background-color:#color;
}
</style>
<head>
关于HTML CSS 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19552788/