这是我在CSS文件中的内容......
.search-doctors-box {
position: relative;
z-index: 999;
margin: 0px;
}
.search-doctors-box--at-map {
position: absolute;
margin-bottom: 10px;
top: 0px;
left: 415px;
width: 680px;
}
我想在SASS中使用&作为父选择器名称来实现这一点,并将其与字符串的其余部分连接起来...
.search-doctors-box {
position: relative;
z-index: 999;
margin: 0px;
&--at-map {
position: absolute;
margin-bottom: 10px;
top: 0px;
left: 415px;
width: 680px;
}
}
可能吗?
谢谢!