HTMLのimgタグに関するメモ
width属性とheight属性を指定(width=400、height=300)
scriptで動的にwidthのみ200に変更
height=300の指定が残っているので解除するためにremoveAttributeでheight属性を削除
widthとheightをcssで指定(style="width:400px; height:300px;")
scriptで動的にwidthのみ200pxに変更
height:300px;の指定が残っているので解除するためにscriptでheightに"auto"をセット
scriptでheightに""をセットしても同じ