Skip to content

Commit a88ad24

Browse files
committed
update
1 parent 85ef8fb commit a88ad24

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

docs/Introduction.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,31 @@ selector {property: value;}
2525
内联定义即是在对象的标记内使用对象的 style 属性定义适用其的样式表属性。
2626
示例代码:
2727

28-
```HTML
2928
<p style="color:#f00">这一行的字体颜色将显示为红色</p>
30-
```
3129

3230
#### 内部样式块对象 Embedding a Style Block
3331

3432
你可以在你的 HTML 文档的`<head>`标记里插入一个`<style>`块对象。
3533
示例代码:
3634

37-
```HTML
3835
<style>
3936
.test2 {
4037
color: #000;
4138
}
4239
</style>
43-
```
4440

4541
#### 外部样式表 Linking to a Style Sheet
4642

4743
你可以先建立外部样式表文件`*.css`,然后使用 HTML 的 link 对象。或者使用 `@import` 来引入。
4844
示例代码:
4945

50-
```HTML
5146
<!-- Use link elements -->
5247
<link rel="stylesheet" href="core.css">
5348

5449
<!-- Use @imports -->
5550
<style>
5651
@import url("more.css");
5752
</style>
58-
```
5953

6054
**注意**:在实际开发中,推荐使用 HTML 的 link 对象来引入。详细内容可以参见<http://www.waylau.com/css-code-guide/#css-miscellaneous>
6155

@@ -67,7 +61,6 @@ selector {property: value;}
6761

6862
!important 作用是提高指定 CSS 样式规则的应用优先权。
6963

70-
```HTML
7164
<!DOCTYPE html>
7265
<html>
7366
<head>
@@ -107,7 +100,7 @@ selector {property: value;}
107100
<div class="test3">没有被覆盖</div>
108101
</body>
109102
</html>
110-
```
103+
111104

112105
![](../images/important.jpg)
113106

0 commit comments

Comments
 (0)