您的位置:首页 > Web前端 > CSS

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

2014-04-15 22:19 525 查看
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
p
s preceding the
h1
, these would not be affected.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: