我如何将jQuery idTabs改为手风琴

时间:2022-11-07 13:40:15

i have used jQuery idTabs for tabs in my project, and now i need to change them to accordion when viewed from mobile devices, as the project i'm doing is responsive website.

我在我的项目中使用了jQuery idTabs作为选项卡,现在我需要在从移动设备查看时将它们更改为手风琴,因为我正在做的项目是响应式网站。

thanks for your help

谢谢你的帮助

1 个解决方案

#1


1  

Are you using any responsive framework?... If yes than they provide tab for mobile device. What you have to do is just add mobile class.

您是否正在使用任何响应式框架?...如果是,则为移动设备提供标签。你要做的就是添加移动课程。

If no than i have ugly solution: Create two section 1) Tabs 2) Accordion. than use css media query and hide accordion by default. For mobile devices hide tab and show accordion...

如果不是我有丑陋的解决方案:创建两个部分1)选项卡2)手风琴。而不是使用css媒体查询和默认隐藏手风琴。对于移动设备隐藏标签并显示手风琴...

#1


1  

Are you using any responsive framework?... If yes than they provide tab for mobile device. What you have to do is just add mobile class.

您是否正在使用任何响应式框架?...如果是,则为移动设备提供标签。你要做的就是添加移动课程。

If no than i have ugly solution: Create two section 1) Tabs 2) Accordion. than use css media query and hide accordion by default. For mobile devices hide tab and show accordion...

如果不是我有丑陋的解决方案:创建两个部分1)选项卡2)手风琴。而不是使用css媒体查询和默认隐藏手风琴。对于移动设备隐藏标签并显示手风琴...