限制詳情頁的圖片大小
<script>
$('.ny_xxxw_2 img').each(function(){
if($(this).width() > 710){ // html中定義寬高的情況
$(this).css("width","710px");
$(this).css("height","auto");
}
else
{
$(this).css("max-width","710px"); // html中沒定義寬高的情況
}
});
</script>