以下のような a要素に囲まれたimg要素はスタイル(CSS)を指定しないとブラウザによっては 2px の border が付けられることがある。 例) <a href="#"><img src="image.jpg"/></a> この img 要素の border-width を jQuery で取得し、違いを見てみる。 スタイル(CSS)での border 指定がない場合(defaultの状態)img 要素の border-width を取得する alert($('a > img').css('border-width')); 取得結果