@@ -51,14 +51,14 @@ <h1 class="tit">Media Queries: width</h1>
51
51
< section id ="syntax " class ="g-mod g-attr ">
52
52
< h2 class ="tit "> 语法:</ h2 >
53
53
< div class ="cont ">
54
- < p > < strong > width</ strong > :< a href ="../../values/length/index .htm "> <length></ a > </ p >
54
+ < p > < strong > width</ strong > :< a href ="../../values/length/length .htm "> <length></ a > </ p >
55
55
</ div >
56
56
</ section >
57
57
< section id ="value " class ="g-mod g-attr ">
58
58
< h2 class ="tit "> 取值:</ h2 >
59
59
< div class ="cont ">
60
60
< dl >
61
- < dt > < a href ="../../values/length/index .htm "> <length></ a > :</ dt >
61
+ < dt > < a href ="../../values/length/length .htm "> <length></ a > :</ dt >
62
62
< dd > 用长度值来定义宽度。不允许负值</ dd >
63
63
</ dl >
64
64
</ div >
@@ -68,14 +68,16 @@ <h2 class="tit">说明:</h2>
68
68
< div class ="cont ">
69
69
< strong > 定义输出设备中的页面可见区域宽度。</ strong >
70
70
< ul >
71
- < li > 与< a href ="../dimension/width.htm "> 盒模型width</ a > 不同,< a href ="width.htm "> 媒体特性width</ a > 的取值只能是< a href ="../../values/length/index.htm "> <length></ a > 。</ li >
72
- < li > 本特性接受min和max前缀,因此可以派生出< em class ="g-color-light "> min-width</ em > 和< em class ="g-color-light "> max-width</ em > 两个媒体特性。</ li >
73
- < li class ="gquote ">
74
- < p class ="gquote-tit "> < strong > 简单列举几个应用示例:</ strong > </ p >
75
- < blockquote class ="gquote-cont "> < pre > < code > @media screen and (width){ … }
76
- @import url(example.css) screen and (width:800px);
77
- <link media="screen and (min-width:400px) and (max-width:900px)" rel="stylesheet" href="example.css" />
78
- <?xml-stylesheet media="not screen and (width:800px)" rel="stylesheet" href="example.css" ?></ code > </ pre > </ blockquote >
71
+ < li > 与< a href ="../dimension/width.htm "> 盒模型width</ a > 不同,< a href ="width.htm "> 媒体特性width</ a > 的取值只能是< a href ="../../values/length/length.htm "> <length></ a > 。</ li >
72
+ < li > 本特性接受min和max前缀,因此可以派生出< em class ="g-color-light "> min-width</ em > 和< em class ="g-color-light "> max-width</ em > 两个媒体特性。
73
+ < div class ="gquote ">
74
+
75
+ < p class ="gquote-tit "> < strong > 简单列举几个应用示例:</ strong > </ p >
76
+ < blockquote class ="gquote-cont "> < pre > < code > @media screen and (width){ … }
77
+ @import url(example.css) screen and (width:800px);
78
+ <link media="screen and (min-width:400px) and (max-width:900px)" rel="stylesheet" href="example.css" />
79
+ <?xml-stylesheet media="not screen and (width:800px)" rel="stylesheet" href="example.css" ?></ code > </ pre > </ blockquote >
80
+ </ div >
79
81
</ li >
80
82
</ ul >
81
83
</ div >
@@ -91,29 +93,49 @@ <h2 class="tit">兼容性:</h2>
91
93
< table class ="g-data ">
92
94
< thead >
93
95
< tr >
94
- < th > < a href ="#title " title ="查看本文档测试时所用浏览器版本 "> 支持版本</ a > \类型</ th >
95
- < th > < span class ="browser-ie "> IE</ span > </ th >
96
- < th > < span class ="browser-firefox "> Firefox</ span > </ th >
97
- < th > < span class ="browser-safari "> Safari</ span > </ th >
98
- < th > < span class ="browser-chrome "> Chrome</ span > </ th >
99
- < th > < span class ="browser-opera "> Opera</ span > </ th >
96
+ < th > Values</ th >
97
+ < th > IE</ th >
98
+ < th > Firefox</ th >
99
+ < th > Chrome</ th >
100
+ < th > Safari</ th >
101
+ < th > Opera</ th >
102
+ < th > iOS Safari</ th >
103
+ < th > Android Browser</ th >
104
+ < th > Android Chrome</ th >
100
105
</ tr >
101
106
</ thead >
102
107
< tbody >
103
108
< tr >
104
- < th > 较早版本</ th >
105
- < td class ="unsupport "> 6-8</ td >
106
- < td rowspan ="2 " class ="support "> 4</ td >
107
- < td rowspan ="2 " class ="support "> 5.1.7</ td >
108
- < td rowspan ="2 " class ="support "> 13</ td >
109
- < td rowspan ="2 " class ="support "> 11.5</ td >
109
+ < td rowspan ="3 "> < strong > Basic Support</ strong > </ td >
110
+ < td class ="unsupport "> 6.0-8.0</ td >
111
+ < td class ="unsupport "> 2.0-3.0</ td >
112
+ < td class ="partsupport "> 4.0-25.0< sup > < a href ="#support1 "> #1</ a > </ sup > </ td >
113
+ < td class ="partsupport "> 6.0< sup > < a href ="#support1 "> #1</ a > </ sup > </ td >
114
+ < td class ="support " rowspan ="3 "> 15.0+</ td >
115
+ < td class ="partsupport "> 6.0-6.1< sup > < a href ="#support1 "> #1</ a > </ sup > </ td >
116
+ < td class ="partsupport "> 2.1-4.3< sup > < a href ="#support1 "> #1</ a > </ sup > </ td >
117
+ < td class ="partsupport "> 18.0-24.0< sup > < a href ="#support1 "> #1</ a > </ sup > </ td >
110
118
</ tr >
111
119
< tr >
112
- < th > 较近版本</ th >
113
- < td class ="support "> 9</ td >
120
+ < td class ="partsupport "> 9.0< sup > < a href ="#support1 "> #1</ a > < a href ="#support2 "> #2</ a > </ sup > </ td >
121
+ < td class ="partsupport "> 3.5-9.0< sup > < a href ="#support3 "> #3</ a > </ sup > </ td >
122
+ < td class ="support " rowspan ="2 "> 26.0+</ td >
123
+ < td class ="support " rowspan ="2 "> 6.1+</ td >
124
+ < td class ="support " rowspan ="2 "> 7.0+</ td >
125
+ < td class ="support " rowspan ="2 "> 4.4+</ td >
126
+ < td class ="support " rowspan ="2 "> 25.0+</ td >
127
+ </ tr >
128
+ < tr >
129
+ < td class ="partsupport "> 10.0-11.0< sup > < a href ="#support1 "> #1</ a > </ sup > </ td >
130
+ < td class ="support "> 10.0+</ td >
114
131
</ tr >
115
132
</ tbody >
116
133
</ table >
134
+ < ol class ="support-info ">
135
+ < li id ="support1 "> 不支持嵌套媒体查询。</ li >
136
+ < li id ="support2 "> 使用width作为媒体查询条件,是包含滚动条在内的</ li >
137
+ < li id ="support3 "> 支持min-width但却无效。</ li >
138
+ </ ol >
117
139
</ div >
118
140
</ section >
119
141
< section id ="example " class ="g-mod g-attr ">
0 commit comments