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什么也没做:http: //jsfiddle.net/nalagg/nnqt6/1/ 有什么建议吗?
marginTop
top
http://jsfiddle.net/nnqt6/3/
您需要一个position: relative;附加的每个 li 将动画下来。顶部 CSS 参数不能像这样更改,除非它的顶部位置是相对于另一个元素的。
position: relative;
尝试添加这个:
.otherBtns{position:relative;}