You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <ratio> value type is a positive (not zero or negative) <integer> followed by optional whitespace, followed by a solidus ('/'), followed by optional whitespace, followed by a positive <integer>. <ratio>s can be ordered or compared by transforming them into the number obtained by dividing their first <integer> by their second <integer>.
The <mq-boolean> value type is an <integer> with the value 0 or 1. Any other integer value is invalid. Note that -0 is always equivalent to 0 in CSS, and so is also accepted as a valid <mq-boolean> value.
101
+
102
+
```css
103
+
@mediascreenand (grid: -0) {
104
+
/* rules */
105
+
}
106
+
107
+
/* equivalent to */
108
+
@mediascreenand (grid: 0) {
109
+
/* rules */
110
+
}
111
+
```
77
112
78
113
## 如何使用
79
114
80
115
### 简写
81
116
82
-
示例 1中同一个 feature name 同时存在 `>=` 和 `<=` 时,可以简写为:
117
+
示例 1中同一个 Media features name 同时存在 `>=` 和 `<=` 时,可以简写为:
83
118
84
119
```css
85
120
@mediascreenand (500px<=width<=1200px) {
@@ -104,7 +139,7 @@ input.css:
104
139
}
105
140
}
106
141
```
107
-
**注意**:当 feature name 在中间的时候,一定要保证两个 `<=` 或 `>=` 的方向一致,否则不会转换。
142
+
**注意**:当 Media features name 在中间的时候,一定要保证两个 `<=` 或 `>=` 的方向一致,否则不会转换。
0 commit comments