Example Analysis of grouping in css
Editor to share with you the example analysis of grouping in css, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Grouping offers some interesting options. For example, all the rule groups in the following example are equivalent, and each group simply shows a different way to group selectors and declarations:
/ * group 1 * / h2 {color:silver; background:white;} h3 {color:silver; background:gray;} h4 {color:white; background:gray;} h5 {color:silver; background:white;} b {color:gray; background:white;} / * group 2 * / H2, h3, h5 {color:silver;} h3, h4 {background:gray;} H2, h5, b {background:white;} h4 {color:white;} b {color:gray;} / * group 3 * / H2, h5 {color:silver; background:white } h3 {color:silver;} h4 {color:white;} h3, h4 {background:gray;} b {color:gray; background:white;} above are all the contents of the article "sample Analysis of grouping in css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!