How to Remove Inline CSS from a Div Using jQuery
To remove inline CSS of a div using jQuery, you can use the '.removeAttr()' method. Here's an example:
// select the div element
var $myDiv = $('#myDiv');
// remove the 'style' attribute (inline CSS)
$myDiv.removeAttr('style');
This will remove any inline CSS that has been applied to the '#myDiv' element.
原文地址: https://www.cveoy.top/t/topic/odbM 著作权归作者所有。请勿转载和采集!