在写样式的时候,后面的 } 没有写,为啥没有效果?
素颜
素颜 2016-12-19 11:46:27
0
3
1005
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style type="text/css">
		h2{color:red;
	</style>
</head>
<body>
	<h3>hello world</h3>
</body>
</html>


素颜
素颜

越努力越幸运!!!

reply all(3)
数据分析师

When writing the style, the following } is not written. Why is there no effect? -PHP Chinese website Q&A-When writing styles, the following } is not written, why does it have no effect? -PHP Chinese website Q&A

Please watch and learn.

女神的闺蜜爱上我

属性(property)是您希望设置的样式属性(style attribute)。每个属性有一个值。属性和值被冒号分开。要使用花括号来包围声明。1476339183895667.png你这个是格式错误,所以代码不会有效果显示。

迷茫

html毕竟不是语言,没有那么严谨,所以有些代码错了也不会给你报错,有的只会没有效果,但有的会有效果的,主要还是自己细心

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!