我有一个 h1
和 h2
标签,我想在特定的 class
上设置样式。但是正确的语法是什么?这里只有 h1
得到 color: blueviolet
:
.adresse h1, h2 {
color: blueviolet;
}
最佳答案
此代码可以帮助您。
.adresse h1,
.adresse h2 {
color: blueviolet;
}
关于css - 在同一类中设置 h1 和 h2 的样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38917562/