Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html container>div:type`的第一个将更正您的最后一句话不完全正确div:first of type将选择整个域中的所有第一个div第二个也不完全正确,因为如果我们有许多嵌套元素,我们也可以选择许多div。使用此#容器>div:first of _Html_Css_Css Selectors - Fatal编程技术网

Html container>div:type`的第一个将更正您的最后一句话不完全正确div:first of type将选择整个域中的所有第一个div第二个也不完全正确,因为如果我们有许多嵌套元素,我们也可以选择许多div。使用此#容器>div:first of

Html container>div:type`的第一个将更正您的最后一句话不完全正确div:first of type将选择整个域中的所有第一个div第二个也不完全正确,因为如果我们有许多嵌套元素,我们也可以选择许多div。使用此#容器>div:first of ,html,css,css-selectors,Html,Css,Css Selectors,container>div:type`的第一个将更正您的最后一句话不完全正确div:first of type将选择整个域中的所有第一个div第二个也不完全正确,因为如果我们有许多嵌套元素,我们也可以选择许多div。使用此#容器>div:first of type`将更正答案我刚刚编辑了我的错误,现在检查。。我不明白在html中省略id是否会使网站更快,在CSS中使用元素选择器和其他东西进行选择:)我刚刚编辑了我的错误,现在检查。。我不明白在html中省略id是否会使网站更快,而在CSS中使用元


container>div:type`的第一个将更正您的最后一句话不完全正确
div:first of type
将选择整个域中的所有第一个div第二个也不完全正确,因为如果我们有许多嵌套元素,我们也可以选择许多div。使用此
#容器
>div:first of type`将更正答案我刚刚编辑了我的错误,现在检查。。我不明白在html中省略id是否会使网站更快,在CSS中使用元素选择器和其他东西进行选择:)我刚刚编辑了我的错误,现在检查。。我不明白在html中省略id是否会使网站更快,而在CSS中使用元素选择器和其他东西进行选择:)
<style>
#example{}

section div:nth-of-type(1){}
</style>
<body>
<section id="section">
    <div id="example">          

    </div> 

    <div id="example2">

    </div>
</section>
</body>