-4
我有一些要求,因爲我手風琴和麪板有問題。我希望我的手風琴包含其他手風琴。但是我的主頁大小有些麻煩,因爲div沒有對齊。否則,在我的工作中,我們不能使用js,所以我只想在html和css中使用代碼。手風琴創建手風琴
我後我的代碼: HTML:
<button class = "accordion">Fat Section</button>
<div class = "panel">
<button class = "accordion"</button>
<div class='panel'>
<p>Statut:</p>
</div>
</div>
button.accordion {
background-color:#ADD8E6;
color: #444;
cursor: pointer;
padding: 18px;
width: 50%;
text-align: left;
border: none;
outline: none;
transition: 0.4s;
display: block;}
button.accordion.active, button.accordion:hover {
background-color: #B0E0E6;
div.panel {
padding: 0 18 px;
width: 100%;
height: 100%;
background-color:white;
transition: max-height 0.2s ease-out;
transform: translateY(-50%);
display:none;}
div.accordion
{
position: relative;
display: block;
}
button.accordion:after {
content: '\02795'; /* Unicode character for "plus" sign (+) */
font-size: 13px;
color: #777;
margin-left: 85%;}
button.accordion.active:after {
content: "\2796"; /* Unicode character for "minus" sign (-) */
感謝您的幫助!
爲什麼PHP標籤的建議?手風琴也沒有足夠的代碼。這聽起來像是「你能幫我完成嗎?」題。 –