0
Sadece CSS ile tıklandığında div içeriğini göstermek/gizlemek istiyorum. Aşağıdaki kodla bunu yapabilirim ama yapmam gereken şey, CSS 'hedef' seçicisini satır içi içine yerleştirmektir. Herhangi bir yardım için teşekkür ederiz. ThxCSS 'hedef' seçici satır içi HTML işaretlemede nasıl kullanılır?
<style>
.openDiv {display: none;}
.openDiv:target {display: block;}
</style>
<ul>
<li><a href="#Expando1">The Tick</a>
<ul class="openDiv" id="Expando1">
<li>Has superhuman strength and mass;</li>
<li>Is nigh-invulnerable; </li>
<li>Has powers that increase as the situation becomes more dramatic;</li>
<li>Does not seem to require oxygen;</li>
<li>Cannot keep his balance if his antennae are removed.</li>
</ul>
</li>
</ul>