将某个样式从一个元素切换到另一个元素
2019年11月30日
作者:佚名
假设您决定将上面的段落文本(而不是 h1 元素)设置为灰色。只需要把 h1 选择器改为 p:
html {color:black;} p {color:gray;} h2 {color:silver;}
假设您决定将上面的段落文本(而不是 h1 元素)设置为灰色。只需要把 h1 选择器改为 p:
html {color:black;} p {color:gray;} h2 {color:silver;}