How to override css containing '!important' using jquery?

前端 未结 15 700
清歌不尽
清歌不尽 2020-12-29 21:05

I want to apply height for specific div using jquery but not able to override the \'!important\' keyword using jquery.

Here is

15条回答
  •  一个人的身影
    2020-12-29 21:09

    There is another trick to get it done!!! Can you remove the myclass from the element and apply the height. Like

    $('#divL3.myclass').removeClass('myclass').css('height', '0px');
    

提交回复
热议问题