我試圖在我的網站頂部顯示一個滑動橫幅。我正在使用featurify.js(http://spreadthesource.com/sandbox/featurify/)來實現這一點。使內容與jQuery可見
問題是,當第一次加載html頁面時,它會在頁面上顯示我的每個列表項。之後,jquery生效,然後消失,我看到滑動橫幅。
我試圖解決這個問題,讓我的html div顯示:none然後在jquery中使用show()。但是這對我不起作用。這是它的代碼。
html:
<div id="features">
<ul>
<li>Discover success </li>
<li>Keeping pace with latest technology</li>
<li>Employee owned</li>
<ul>
</div>
CSS:
#features {
color:#a60000;
font-size:2.25em;
padding:1.25em;
display:none;
}
JS:
$(#features).show();
而且,這將是巨大的,如果任何人都可以建議對我來說,解決這個問題的另一種方法。
謝謝。這對我最適合 – ambit