• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

选择器指示两个选择器之间的关系。

四种组合:

后代选择器:由空格分隔(用于选择元素的后代)。

例如:

继承选择器

{

背景色:绿色;

}

子元素选择器:由分隔(只能选择一级子元素)

例如:

divp

{

背景色:绿色;

}

相邻兄弟选择器:由分隔(您可以选择紧接在另一个元素之后的元素,并且两者具有相同的父元素)

例如:

继承选择器

{

背景色:绿色;

}

普通同级选择器(后续同级选择器):由~(选择所有指定元素之后的相邻同级元素)分隔

例如:

div~p

{

背景色:绿色;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now