Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQuery animate を使用すると奇妙marginTopな問題が発生しますが、top何もしません 。
marginTop
top
http://jsfiddle.net/nnqt6/3/
position: relative;アニメ化するそれぞれのliを添付する必要があります。上部の CSS パラメータは、上部の位置が別の要素に対して相対的でない限り、このように変更することはできません。
position: relative;
これを追加してみてください:
.otherBtns{position:relative;}