为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

1 回答

/* 没有配置sass是这样的,不过可以写成下面这种: */

.box{

    width: 100px;

    height: 100px;

    background: rgb(31, 212, 61);

    

}

.demo-1{

    /* &:hover{

        width: 500px;

    } */

    transition: all 2s ease;

    /* width: 500px; */

}

.demo-1:hover{

    width: 900px;

    height: 400px;

    background: rgb(233, 53, 98);

    transform: rotate(45deg);

}



0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

貌似不可以使用&:hover

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信