ID 选取器 (ID selector) 是一种特别的属性选取器 (attribute selector) ,简单说, ID 选取器只作用在 id 属性 (attribute) ,如同 [id = name] { /* 相...
基于14个网页-相关网页
Another specialty selector is the ID selector.
另一种特殊选择符是ID选择符。
Like the class, an ID selector is based on the value of an attribute, but in this case, it's the ID attribute.
与类选择符相似,ID选择符也基于一个属性的值,但这个属性是ID属性。
A simple selector is either a type selector or universal selector followed immediately by zero or more attribute selectors, ID selectors, or pseudo-classes, in any order.
一个简单选择符或者是一个类型选择符,或者是一个全局选择符,紧跟在后的是零个或多个属性选择符,ID选择符或伪类,次序任意。
应用推荐