折叠效果,纯css,支持单个或者多个展开

XML/HTML Code
- <section class="ac-container">
- <div>
- <input id="ac-1" name="accordion-1" type="checkbox" />
- <label for="ac-1">About us</label>
- <article class="ac-small">
- <p>Well, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows.</p>
- </article>
- </div>
- <div>
- <input id="ac-2" name="accordion-1" type="checkbox" />
- <label for="ac-2">How we work</label>
- <article class="ac-medium">
- <p>Like you, I used to think the world was this great place where everybody lived by the same standards I did, then some kid with a nail showed me I was living in his world, a world where chaos rules not order, a world where righteousness is not rewarded. That's Cesar's world, and if you're not willing to play by his rules, then you're gonna have to pay the price. </p>
- </article>
- </div>
- <div>
- <input id="ac-3" name="accordion-1" type="checkbox" />
- <label for="ac-3">References</label>
- <article class="ac-large">
- <p>You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know that seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We said we'd say it was the snow that killed the other two, but it wasn't. Nature is lethal but it doesn't hold a candle to man. </p>
- </article>
- </div>
- <div>
- <input id="ac-4" name="accordion-1" type="checkbox" />
- <label for="ac-4">Contact us</label>
- <article class="ac-large">
- <p>You see? It's curious. Ted did figure it out - time travel. And when we get back, we gonna tell everyone. How it's possible, how it's done, what the dangers are. But then why fifty years in the future when the spacecraft encounters a black hole does the computer call it an 'unknown entry event'? Why don't they know? If they don't know, that means we never told anyone. And if we never told anyone it means we never made it back. Hence we die down here. Just as a matter of deductive logic. </p>
- </article>
- </div>
- </section>
原文地址:http://www.freejs.net/article_jquerywenzi_461.html
最近更新
- CSS3鼠标悬停图片遮罩层变形动画特...
- 响应式全屏手风琴菜单,同时支持垂直方...
- 分组select选择器,支持多选和单...
- jQuery时间日期选择器代码日历插...
- Select 选择器 可以清空的单选...
- jQuery json 无刷新翻页 ...
我爱薅羊毛
点击最多
广告赞助
相关文章
- jquery点击显示或隐藏内容,可以一次展开多个和...
- tooltips/弹出层/消息提示效果,支持点击与...
- jQuery幸运大转盘抽奖活动代码
- jquery来实现的添加商品和减少商品数量,用于购...
- jQuery手机端弹出层提示对话框
- php js实现拖动滑块完成拼图验证码