元素和元素ID之间有什么区别?(what's the difference between Element and Element ID?)
元素和元素ID之间有什么区别?
what's the difference between Element and Element ID?
最满意答案
<div id="element-id"></div>元素是div ,元素的ID是element-id 。
请注意,每个ID在DOM树中都应该是唯一的。
<div id="element-id"></div>The element is div, the element's ID is element-id.
Note that every ID should be unique in the DOM tree.
更多推荐
发布评论