ここに新しい質問を投稿したところ、画面解像度が 980px 未満の場合に画像の幅と高さを削除する方法についての回答が得られました。
私はこのコードを得ました:
<img width="477" height="299" src="/uploads/2012/01/415.jpg" class="attachment-portfolio2 wp-post-image"/> 
var images;
$(function() {  
    images = $('img.wp-post-image');
    removeSize();
});
$(window).resize(removeResize);
function removeSize()
{
    if($(window).width() < 980 && images.length > 0)
    {
        images.removeAttr('width').removeAttr('height');
    }
}
今、私はそれを "change width jquery comand" に変更したいので、試してみました:
 var images;
    $(function() {  
        images = $('img.wp-post-image');
        removeSize();
    });
    $(window).resize(removeResize);
    function removeSize()
    {
      if ( $(window).width() < 960) {
    $('img.wp-post-image').animate({width:'400px'});
    $('img.wp-post-image').animate({height:'300px'});
}
else {
    $('img.wp-post-image').animate({width:'400px'});
    $('img.wp-post-image').animate({height:'300px'});
}
    }
しかし、機能していません。何が問題なのですか? ありがとうございました