摘要:
2011.08.23 update:$('.entry img').each(function(){ var width=710; //输入指定宽度,图片高度自动适应 var thiswidth = parseInt($(this).css('width')); var thisheight = parseInt($(this).css('height')); if(thiswidth < width) $(this).css('height',width / thiswidth * thisheight).css(' 阅读全文