jQuery: showとhideの正体
12345// Instantaneously hide all paragraphs$( "p" ).hide();// Instantaneously show all divs that have the hidden style class$( "div.hidden" ).show();When jQuery hides an element, it sets its CSS
displayproperty tonone. This means the content will have zero width and height; it does not mean that the content will simply become transparent and leave an empty area on the page.
まじかよ!
hide()⇔widthとheightが0
なんだってさ。知らんかった。ドキュメントって面白いねぇ。