Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of grouping in css

Shulou Source: shulou.com Published: 2022-06-01 04:04:32 10月04日 Update

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!

Tags: Grouping articles examples analysis content selection different interesting not much just most methods more knowledge equivalence industry rules information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Information MySQL Xiaomi Linux