[英]How to stick div to the top of parent div
What I'm trying to do is, 我想做的是
class="new"
div to the top of .inside
div when you scroll down. class="new"
div粘贴到.inside
div的顶部。 http://jsfiddle.net/tt13/5CxPr/13/ http://jsfiddle.net/tt13/5CxPr/13/
使用prependTo()
而不是appendTo()
http://jsfiddle.net/uday99/5CxPr/20/
the code is too long to put here but here are key notes: 该代码太长,无法放置在此处,但以下是一些关键说明:
.prependTo()
.prependTo()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.