网站内容图片高度移除js方法。
<div id="delheight">
<img style="width:100%;height:99px;" src="/yourimage.png" />
</div>
<script type="text/javascript">
window.onload =function()
{
var e=document.getElementById("delheight");
var str1 = e.innerHTML;
str1 = str1.replace(/(\bheight\s*=\s*(?:'[^']*'|"[^"]*"))/ig, "");
str1 = str1.replace(/[ \t]*height[ \t]*=[ \t]*(?:'[^']*'|"[^"]*")/ig, "");
e.innerHTML = str1;
}
</script>