我在W3 Schools網站上看到了這個動畫手風琴菜單,我真的很喜歡它,但它似乎沒有任何關於如何保持特定部分打開並默認爲「活動」的任何細節。HTML Accoridion Panel默認打開?
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_accordion_animate
我試圖改變類的按鈕「活動」的但做了一些似乎工作,它不僅改變了「+」到「 - 」號不顯示菜單。
任何人都可以建議嗎?
<div id="accordion_menu">
<button class="accordion">What You Will Learn</button>
<div class="panel scrolled">
<ul>
<li>Fundamental algorithms for signal processing.</li>
<li>Techniques for beam forming.</li>
<li>Trade-offs among active waveform designs.</li>
<li>Ocean medium effects.</li>
<li>Shallow water effects and issues</li>
<li>Optimal and adaptive processing</li>
</ul>
</div>
<button class="accordion">Course Outline</button>
<div class="panel">
<ol>
<li>
<p><em>Introduction to Sonar Signal Processing.</em> Introduction to sonar detection systems and types of signal processing performed in sonar. Correlation processing, Fournier analysis, windowing, and ambiguity functions. Evaluation of probability of detection and false alarm rate for FFT and broadband signal processors. </p>
</li>
<li>
<p><em>Beamforming and Array Processing.</em> Beam patterns for sonar arrays, shading techniques for sidelobe control, beamformer implementation. Calculation of DI and array gain in directional noise fields. </p>
</li>
<li>
<p><em>Passive Sonar Signal Processing.</em> Review of signal characteristics, ambient noise, and platform noise. Passive system configurations and implementations. Spectral analysis and integration. </p>
</li>
<li>
<p><em>Active Sonar Signal Processing.</em> Waveform selection and ambiguity functions. Projector configurations. Reverberation and multipath effects. Receiver design. </p>
</li>
<li>
<p><em>Passive and Active Designs and Implementations.</em>Advanced techniques for beamforming, detection, estimation, and classification will be explored. Optimal array processing. Data adaptive methods, super resolution spectral techniques, time-frequency representations and active/passive automated classification are among the advanced techniques that will be covered.</p>
</li>
<li>
<p><em>Advanced Signal Processing Techniques.</em>Advanced techniques for beamforming, detection, estimation, and classification will be explored. Optimal array processing. Data adaptive methods, super resolution spectral techniques, time-frequency representations and active/passive automated classification are among the advanced techniques that will be covered. </p>
</li>
</ol>
</div>
<button class="accordion">Tuition</button>
<div class="panel">
<p>Tuition for this three-day course is $1890 per person at one of our scheduled public courses. Onsite pricing is available. Please call us at 410-956-8805 or send an email to [email protected]</p>
<p><a href="https://www.aticourses.com/beta_mobile/register_secure.html">Register Now Without Obligation.</a></p>
</div>
</div>
發佈目前無法使用的代碼。 –
歡迎來到SO。請看[遊覽]。您可能還想檢查[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)和[問],以及如何創建[mcve]。發佈您嘗試過的代碼以及收到的錯誤。儘可能具體,因爲它會導致更好的答案。 – happymacarts
也許你想看看Bootstrap手風琴:http://getbootstrap.com/javascript/#collapse-example-accordion –