我正在使用jScroller来显示一个选框。它工作正常,但它总是将我的 div 粘贴到页面顶部,而不是 div 的确切位置......
<div id="CaptDiv"> // this div is at the centre of my page
<div id="CaptionDiv" class="captiontext">
Find your Leads to Precede and Predate
</div>
</div>
我只应用了这个css......
.captiontext
{
font-weight:bold; color:#69442f;
font-family: Arial,Helvetica,sans-serif; font-size:105%;margin-left:70px;
}
和我的jQuery,
$(document).ready(function() {
$jScroller.add("#CaptDiv", "#CaptionDiv", "right", 1);
$jScroller.start();
});