Ich stieß auf dieses animierte Akkordeonmenü von der W3 Schools Seite und ich mag es wirklich, aber es scheint keine genauen Angaben darüber zu geben, wie man eine bestimmte Sektion offen und "aktiv" standardmäßig hält.HTML Accoridion Panel standardmäßig geöffnet?
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_accordion_animate
Ich habe versucht, die Klasse der Schaltfläche auf „aktiv“ zu ändern, aber das tat einige zu funktionieren scheint, und es verändert nur die „+“ auf ein „-“ Zeichen, ohne das Menü zeigt.
Kann jemand beraten?
<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>
Veröffentlichen Sie den Code, der momentan nicht funktioniert. –
Willkommen bei SO. Bitte werfen Sie einen Blick auf [Tour]. Sie können auch prüfen, [Welche Themen kann ich fragen] (http://stackoverflow.com/help/on-topic) und [fragen], und wie Sie ein [mcve] erstellen. Veröffentlichen Sie den Code, den Sie versucht haben, und die Fehler, die Sie erhalten haben. Sei so genau wie möglich, denn das führt zu besseren Antworten. – happymacarts
Vielleicht möchten Sie sich Bootstrap Akkordeon ansehen: http://getbootstrap.com/javascript/#collapse-example-accordion –