个样式规则由两部分组成:选择器(selector )和样式声明(style declaration )。选择器表明要为哪一个元素设置样式,样式声明则表明要应用哪些样式属性。
基于20个网页-相关网页
不要对可以继承的样式声明进行重复声明。
还要注意组选择符,也就是两个或更多的选择符组合在一起,使用相同的样式声明。
Also notice the use of group selectors, where two or more selectors are grouped together to have the same style declarations.
在构建您自己的主应用程序 CSS 文件时,通常一种好的做法是首先放置那些默认的组件样式声明。
When building your main application CSS file, it's generally good practice to place your default component style declarations first.
应用推荐