砌体不工作的Twitter部件
问题描述:
我有一些JavaScript,从用户拉最近的鸣叫。它看起来像这样:砌体不工作的Twitter部件
getTwitters('tweet', { id: 'LadyGaga', count: 8, enableLinks: true, ignoreReplies:
false, clearContents: true, template: '%text% <a class="arrow"
href="http://twitter.com/%user_screen_name%/statuses/%id_str%/" target="_blank"></a>'
});
的tweet被加载列表动态进入
<div id=tweet"></div>
与
$(window).load(function() { $('#tweet').masonry(); });
然而
由于某种原因,它不工作:(我已经做到了这我不知道为什么它会这样做。
我的CSS也很安全:
#tweet {
margin-left:-43px;
}
#tweet li {
list-style:none;
padding:5px;
margin:0 0 3px 3px;
background:url('http://static.tumblr.com/ux4v5bf/wM2lywrxr/aeeatagsd.png') repeat;
float:left;
width:88px;
}
答
我再次看看我的代码,并认为我必须定位tweet而不是tweet本身。哈哈傻了我。