Ich möchte den folgenden Inhalt als standardmäßig ausgeblendet setzen. Der Code funktioniert einwandfrei, zeigt jedoch den gesamten Inhalt an, wenn Sie auf der Seite landen.Inhalt standardmäßig als 'Versteckt' festlegen
.show {
display: none;
}
.hide:focus+.show {
display: inline;
}
.hide:focus {
display: none;
}
.hide:focus~#list {
display: none;
}
@media print {
.hide,
.show {
display: none;
}
}
<p>Click below to learn how to access LearnHub and the services available to employees.</p>
<div>
<a href="#" class="hide">[hide]</a>
<a href="#" class="show">[show]</a>
<ol id="list">
<p>
<h2>How to access LearnHub</h2>
<p>1. Click on the LearnHub button under ‘Business Systems' on the Intranet home page.</p>
</ol>
</div>
Was "Inhalt"? Das ganze Kind von '
'? – Swellar