首页 > Web开发 > 详细

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

时间:2014-04-16 10:12:09      阅读:446      评论:0      收藏:0      [点我收藏+]

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,布布扣,bubuko.com

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

原文:http://www.cnblogs.com/yzhen/p/3667485.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!