What does & do in css

后端 未结 2 471
无人共我
无人共我 2021-01-28 14:51

I am looking at some legacy code and found something like below in the css file:

.user_modal {
  width: auto;
  height\" auto;
  &.modal,
  &.fade.in
  {         


        
2条回答
  •  借酒劲吻你
    2021-01-28 15:20

    It looks like Sass or LESS. It's user_modal with those other classes in it that are not children of it. The & is a reference to the element/class above it.

提交回复
热议问题