天高任鸟飞 ... 10)结构化代码div(division)、id、class 用它们来书写紧凑的xhtml,更明智的使用css. 1、选择器(Selector) ...
基于1个网页-相关网页
So a div element might have a list that contained an attribute named "id" and another named "class."
所以 div 元素可能有一个包含属性 “id” 和另一个属性 “class” 的列表。
<div class="tab"> uses a class attribute where you might imagine an ID attribute.
<div class="tab"> 使用 class 属性,而这里似乎应该使用 ID 属性。
The outer DIV element with an ID attribute value of sidebar contains an inner DIV element with a class attribute called gutter.
外边的 DIV 元素的 ID 属性值为 sidebar,这个元素包含的内部 DIV 具有 class 属性值 gutter。
应用推荐