我有一个div容器许多漂浮的div:jQuery的浮动的div后追加
<div class="container">
<div class="c">1</div>
<div class="c">1</div>
<div class="c" id="t">1</div>
<div class="c">1</div>
<div class="c">1</div>
</div>
我用这方式:
<style>
.container{position:absolute;width:1000px;height:200px;}
.c {width:250px;float:left;}
</style>
现在我怎么能与元素之后添加元素id“t”使用jQuery并引用id为“t”的元素并且不使用父元素作为引用。有什么建议么?
什么'insertAfter'或'after'? – elclanrs 2012-08-03 02:57:07
你有什么试过,什么不工作? – xdazz 2012-08-03 02:58:37
http://api.jquery.com/after/ - 首先查看jQuery文档,这太神奇了。 – nbrooks 2012-08-03 03:04:08