-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
交集选择器和并集选择器 #15
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
交集选择器
如字面意思,将两个或多个选择器的值放在一起取其交集,具体使用方式为在多个选择器之间将上一个空格
试例 html 页面:
未加样式时的样子
现在使用交集选择器给第二个盒子的
h1
加上样式加上样式的样子
可以看到,精准的为第二个
h1
加上了样式并集选择器
继续使用上面的列子,这次为所有字体加上
font-size
属性,具体使用方式为在多个选择器之间加上一个逗号效果:
The text was updated successfully, but these errors were encountered: