背景颜色无法使用
来源:1-6 编程练习
为你浅笑
2019-04-12 20:46:17
<html>
<head>
<title>hello</title>
</head>
<body background="yellow";>
hello,my name is smile!
</body>
</html>
2回答
同学你好,1、background是css属性,需要写在style中,这里可以直接使用标签属性bgcolor。
2、属性值引号后面的分号可以不要哦,例:
希望能帮助到你,祝学习愉快!
为你浅笑
提问者
2019-04-12
背景颜色后面的“;"在我源代码上面是没有的 ,为什么我在网页上面没有显示,在VSCODE上面也是没有背景颜色显示!
相似问题