如何让手风琴内容从下到上扩展? 基本上这里的主题是我建立一个网站,我想在一个区域(一个div)这个手风琴,但我想把它放在页面的底部,然后当我按下特定的按钮(目前正在工作!)扩展不像经典的方式,但到顶部。因为我是大学一年级学生,这是我的第二个网站,我只是想把它变成光线,所以不需要jquery或复杂的东西,我不明白!
article.accordion {
display: block;
width: 650px;
padding: 0.5em 0.5em 1px 0.5em;
margin: 0 auto;
background-color: #666;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.3);
}
article.accordion section {
display: block;
width: 615px;
height: 30px;
padding: 0 1em;
margin: 0 0 0.5em 0;
color: #333;
background-color: #333;
overflow: hidden;
}
article.accordion section h2 {
font-size: 1em;
font-weight: bold;
width: 100%;
line-height: 2em;
padding: 0;
margin: 0;
color: #ddd;
}
article.accordion section h2 a {
display: block;
width: 100%;
line-height: 2em;
text-decoration: none;
color: inherit;
outline: 0 none;
}
article.accordion section,
article.accordion section h2 {
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
article.accordion section:target {
height: 450px;
background-color: #fff;
}
article.accordion section:target h2 {
font-size: 1.6em;
color: #333;
}

<div id="tab"></div>
<div id="connect">
<p>
<img src="images/Steam Dial.png" width="88" height="29">
</p>
</div>
<div id="apDiv2">
<article class="accordion">
<section id="acc1">
<h2>Games</h2>
<p>This content appears on page 1.</p>
</section>
<section id="acc2">
<h2>Software</h2>
<p>This content appears on page 2.</p>
</section>
<section id="acc3">
<h2>Hardware</h2>
<p>This content appears on page 3.</p>
</section>
</article>
</div>
&#13;