1
我想將以下內容設置爲默認隱藏。代碼工作正常,但它顯示所有的內容,當你登陸頁面。默認情況下,將內容設置爲「隱藏」
.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>
什麼「內容」? '
'的所有孩子? – Swellar