0
.airport-selections {
margin-top: 10px;
.airport-input {
width: 200px;
}
}
HTML:
<div class="airport-selections">
<label class="airport-label" for="airport-from">
Departure:
</label>
<input type="text" class="airport-input">
</div>
如果我不嵌套它们时,输入的宽度设置为200。这也与所有的页面上的样式发生。
普通的CSS不支持这种嵌套的语法 - 只有CSS预处理器,比如LESS,SASS等。 – CBroe