是否可以在样式中使用样式?
例如,像这样:
#content
{
text-align: center;
border-style:solid;
border-width:10px;
border-color: #121212;
h1
{
font-family: arial;
}
}
我实际上想做的是仅在内容 div 中将标题字体设置为 arial。
最佳答案
没有,只有这样:
#content
{
text-align: center;
border-style:solid;
border-width:10px;
border-color: #121212;
}
#content h1
{
font-family: arial;
}
关于样式中的 CSS 样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6966108/