【CSS3】Advanced3:Universal, Child, and Adjacent Selectors

1.Universal selectors

eg:#target*{ } 

2.Child selectors <

something immediately nested within something直接子女,不包括子孙

3.Adjacent Selector +

something immediately following something 直接跟在后面的第一个跟屁虫

CSS3:h1 ~ p { font-weight: bold } will style all paragraphs after the top-level heading but if there were any ps preceding the h1, these would not be affected.

【CSS3】Advanced3:Universal, Child, and Adjacent Selectors,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。