How to add display:inline-block in a jQuery show() function?

后端 未结 12 1964
执念已碎
执念已碎 2020-12-02 17:38

I have some code like this:

function switch_tabs(obj) {
    $(\'.tab-content\').hide();
    $(\'.tabs a\').removeClass(\"selected\");

    var id = obj.attr(         


        
12条回答
  •  遥遥无期
    2020-12-02 18:33

    Best way is to add !important suffix to the selector .

    Example:

     #selector{
         display: inline-block !important;                   
    }
    

提交回复
热议问题