是否可以创建仅使用 CSS 的手风琴? [英] Is it possible to create a CSS-only accordion?
问题描述
我正在考虑在请启用 Javascript"页面中使用手风琴,但我不知道是否可以使用 仅 CSS.
I'm thinking about using an accordion in a "please enable Javascript" page, but I don't know if it's possible with CSS only.
我几乎可以肯定它适用于大多数浏览器,但我也担心我会面临 IE 的一些限制,我想知道你们中是否有人已经(或没有)尝试过这个并且可以告诉我如果它可能或不可能(考虑到 IE6+).
I'm almost sure it is for most browsers, but I'm also fearing I'll face some limitation of IE and I'd like to know if any of you tried this already (or not) and could tell me if it's either possible or impossible (considering IE6+).
推荐答案
某些 CSS 仅 Accordin 在这里
Some CSS only Accordin here
并且它是 IE 6 兼容的
And it is IE 6 compatible
http://www.cssnewbie.com/advanced-css-accordion-效果/
http://www.cssnewbie.com/example/css-only-accordion/vertical.html
这篇关于是否可以创建仅使用 CSS 的手风琴?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!