There are hundreds of CSS properties that you can use to change the way an element looks.

CSS实现方式

inline CSS

style=”prop1:val1; [prop2:val2;]”
更改 AnchorText, ButtonText等text部分的字体颜色

  1. <h2 style="color:blue;">
  2. CatPhotoApp
  3. </h2>

CSS Selector

CSS Selector 主要用于对匹配的element实现样式渲染,匹配的方式主要有:

  • Element 直接匹配
  • CSS Class 匹配
  • CSS ID 匹配
  • Attribute 匹配
  1. element {
  2. prop1:val1;
  3. [prop2:val2;]
  4. }

Notice