admin管理员组文章数量:1290311
What are benefits of accordion over tabs and vice-versa?
Although both of them are supported in many Javascript UI frameworks/libraries, you can see example here: /
For me they serve pretty same purpose (to hide plexity), except accordion is IMHO better for "continuous-reading", it's easier to quickly go to next section, while Tabs seems to be more "random-access"
What's their benefits, when should I prefer one over the latter one? (from the UX point of view, I don't care about horizontal/vertical and html code differences)
What are benefits of accordion over tabs and vice-versa?
Although both of them are supported in many Javascript UI frameworks/libraries, you can see example here: http://jqueryui./demos/
For me they serve pretty same purpose (to hide plexity), except accordion is IMHO better for "continuous-reading", it's easier to quickly go to next section, while Tabs seems to be more "random-access"
What's their benefits, when should I prefer one over the latter one? (from the UX point of view, I don't care about horizontal/vertical and html code differences)
Share Improve this question edited Apr 17, 2011 at 0:30 Kamil Tomšík asked Apr 17, 2011 at 0:18 Kamil TomšíkKamil Tomšík 2,4372 gold badges28 silver badges33 bronze badges4 Answers
Reset to default 5According to repost on UX, accordions have a fixed height and have to fit the whole screen (see example) - this allows for the easy selection of any section (we don't want to scroll up/down to select other sections as I thought). I've pletely missed that.
Tabs on the other hand can have different heights (although it's better idea to fix their height too and provide scrollbars). Tab headers, unlike accordion ones, stay in place after selection.
Accordions are best suited for mobile devices, where there isn't enough space for horizontal tabs and vertical tabs would require the user to turn their head to read the headers. "moving headers" are the form of necessary evil in this case.
The one advantage that an accordion has over tabs is that if you are splitting information into ordered steps or content that leads to the next bit of content and so on, when you finish reading, the tab to view the next part is right where your eye is, rather than having to go back to the top and click the next tab. This may not seem like a big deal, but it is similar to the reason vertically stacked forms are easier to use and cause less confusion than horizontally aligned ones. It is not always the best choice, but when you have ordered content, it is a lot easier to read it, and if you want to continue on, click immediately below where your eye already is.
The esthetic difference is that tabs represents clear separators of parts of the content while an accordion divides content.
All of that +
An accordion is animated and tabs aren't. And since accordions are lame and animations annoying... Tabs are your friends. Just make sure the URL defines whcih tab is opened.
本文标签: javascriptdifference between accordion and tabsStack Overflow
版权声明:本文标题:javascript - difference between accordion and tabs - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741430739a2378343.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论