File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ CSS3 已完全向后兼容,所以你就不必改变现有的设计。
10
10
11
11
## 语法
12
12
13
- selector {property: value }
13
+ selector {property: value; }
14
14
15
15
![ ] ( ../images/selector.jpg )
16
16
@@ -25,7 +25,7 @@ selector {property:value}
25
25
内联定义即是在对象的标记内使用对象的 style 属性定义适用其的样式表属性。
26
26
示例代码:
27
27
28
- ```html
28
+ ```HTML
29
29
<p style="color:#f00">这一行的字体颜色将显示为红色</p>
30
30
```
31
31
@@ -34,7 +34,7 @@ selector {property:value}
34
34
你可以在你的 HTML 文档的` <head> ` 标记里插入一个` <style> ` 块对象。
35
35
示例代码:
36
36
37
- ```html
37
+ ```HTML
38
38
<style>
39
39
.test2 {
40
40
color: #000;
@@ -47,7 +47,7 @@ selector {property:value}
47
47
你可以先建立外部样式表文件` *.css ` ,然后使用 HTML 的 link 对象。或者使用 ` @import ` 来引入。
48
48
示例代码:
49
49
50
- ```html
50
+ ```HTML
51
51
<!-- Use link elements -->
52
52
<link rel="stylesheet" href="core.css">
53
53
@@ -67,7 +67,7 @@ selector {property:value}
67
67
68
68
!important 作用是提高指定 CSS 样式规则的应用优先权。
69
69
70
- ```html
70
+ ```HTML
71
71
<!DOCTYPE html>
72
72
<html>
73
73
<head>
You can’t perform that action at this time.
0 commit comments