Blogger Information
Blog 48
fans 2
comment 3
visits 37951
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JS去除img标签中的style属性
黑猫警长的博客
Original
2369 people have browsed it
<script src="http://www.jq22.com/jquery/jquery-3.3.1.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
//使用attr把style去除
$(".con img").attr("style","");
});
</script>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post