Something as simple as a may only contain a CLASS or ID as information.
简单一些的,像a,可能只包含CLASS或ID信息。
Finding an element based on its ID, element type, or CSS class name is very useful, but what if you want to find an element based on its position in the DOM tree.
根据ID、元素类型或CSS类名查找元素非常有用,但如何根据元素在 DOM 树中的位置执行查找呢?
They are finding objects by HTML tag, by ID, or by CLASS.
它们通过HTML标记、ID或CLASS查找对象。
For a site containing static content, the id or class attributes applied to these containers might be all you need to style this content.
对于包含静态内容的站点,只需将id或class属性应用于这些容器,就可以对它们应用样式。
We use id attributes mainly for layout and class attributes, for repeated elements, or elements we know will be hard to identify using a CSS selector.
对于布局,我们主要使用ID属性;对于重复的元素或者使用CSS选择器难以识别出的元素,使用class属性。
Keep in mind that attributes for an element must have unique names; in other words, an element cannot have two "id" or two "class" attributes.
记住,元素的属性必须具有惟一的名称,也就是说,一个元素不能有两个“id”或两个“class”属性。
Applied Rules list, select an element, an element ID, or an element CSS class.
“应用的规则”列表中,选择一个元素、元素ID或元素css类。
At the bottom of the screen, the utility displays the element's HTML name, ID or class tag and dimensions-handy for isolating problems with a specific element.
在屏幕底部实用程序显示元素的HTML名称、ID或类的标记和维度方便地隔离与特定元素的问题。
ID or CSS class value is displayed in the tag navigator to help you distinguish it from other elements.
ID或css类别值会显示在标记导览中,以协助您和其他项目区分。
ID or CSS class value is displayed in the tag navigator to help you distinguish it from other elements.
ID或css类别值会显示在标记导览中,以协助您和其他项目区分。
应用推荐