作者:小女人的忧伤-- | 来源:互联网 | 2023-05-16 22:28
Ihavealabeloutsideaformandlabelsinsodeaform.IwanttouseSASStostylethelabelsinsod
I have a label outside a form and labels insode a form. I want to use SASS to style the labels insode the form different. Here the html:
我在表单外面有一个标签,标签在表格中。我想使用SASS来标记不同形式的标签。这里的html:
I thought I could do:
我以为我能做到:
.loginField
{
label
{
//css rules for label outside form
}
&form{
label{
//css rules for label insode the form
}
}
}
However, this does not produce CSS rules for the inner labels - they get applied the same styles as the label outside the form...
但是,这不会为内部标签生成CSS规则 - 它们应用与表单外部标签相同的样式...
1 个解决方案