About hover failure after clicking

About hover failure after clicking

Today, after the click event is triggered, hover fails. The solution is as follows:
use !important directly

 ul li:hover{
    
    
    border: 1px solid #FEA015!important;
    background-color: #FEA015!important;
    color: #FFF!important;
    cursor: pointer;
}

If you are on simple css, it is not recommended to use !important, because !important permissions are too heavy, accounting for 1000, so use it with caution

Guess you like

Origin blog.csdn.net/weixin_43236062/article/details/88868557
Recommended