我有一個手風琴,這將有3 - 當點擊任何手風琴的4個元素和內容各手風琴將顯示在手風琴的手風琴手風琴向下滾動,當我們通過手風琴導航
讓我們說我有手風琴..
ONE
TWO
THREE
默認手風琴應在最後一個手風琴之後元素顯示展開內容
像
ONE (This is active on page load)
TWO
THREE
accordion contents should show up here & for other shoul also show up here when a user
點擊任何手風琴(ONE,TWO。三)
小提琴http://jsfiddle.net/gmcLnowa/9/
<div class="header"> this is a header</div>
<div class="contents"> <p>Page text will be here </p>
<p>Page text will be here </p>
<p>Page text will be here </p>
<p>Page text will be here </p>
<p>Page text will be here </p></div>
<div id="accordion">
<ul>
<li> <a href="#one">Example one</a>
</li>
<li> <a href="#two">Example two</a>
</li>
<li> <a href="#three">Example three</a>
</li>
</ul>
<div id="one" class="accordion">ONE Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet in laborum praesentium esse aliquam molestiae animi non facilis perspiciatis corporis ad molestias quo harum suscipit ipsum incidunt ea voluptates accusantium. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet in laborum praesentium esse aliquam molestiae animi non facilis perspiciatis corporis ad molestias quo harum suscipit ipsum incidunt ea voluptates accusantium.</div>
<div id="two" class="accordion">TWO Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet in laborum praesentium esse aliquam molestiae animi non facilis perspiciatis corporis ad molestias quo harum suscipit ipsum incidunt ea voluptates accusantium. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet in laborum praesentium esse aliquam molestiae animi non facilis perspiciatis corporis ad molestias quo harum suscipit ipsum incidunt ea voluptates accusantium.</div>
<div id="three" class="accordion">THREE Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet in laborum praesentium esse aliquam molestiae animi non facilis perspiciatis corporis ad molestias quo harum suscipit ipsum incidunt ea voluptates accusantium. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet in laborum praesentium esse aliquam molestiae animi non facilis perspiciatis corporis ad molestias quo harum suscipit ipsum incidunt ea voluptates accusantium.</div>
</div>
它默認了作爲click事件滾動時,會引發出第一手風琴的內容。在手風琴之間導航時如何停止滾動。
-1你的問題是沒有感覺,標題亂七八糟拼寫錯誤。 – 2014-09-11 07:58:26
除了課程名稱,你在哪裏使用'手風琴'? __與jQuery UI手風琴沒有關係___ – Satpal 2014-09-11 08:01:36
只是想給你一些解決方案,但你的問題很奇怪,崩潰了,甚至無法理解。 – Benjamin 2014-09-11 08:02:19