Remove a specific inline style with Javascript|jQuery

前端 未结 7 2119
走了就别回头了
走了就别回头了 2020-12-08 01:46

I have the following code in my html:

hello world

7条回答
  •  既然无缘
    2020-12-08 02:21

    Set the properties to inherit:

    $('#foo').css('font-family','inherit').css('font-size','inherit');
    

提交回复
热议问题