jquery 选项卡 - php 函数
我有一个正在开发的网站。登录后,用户将进入带有 jq 选项卡的页面。
会员页面有分页 - 可以有多个页面供会员查看。
为了解决分页的难题,我将会员页面的一些代码转储到带有 jQuery 选项卡的函数中。
在 Firefox 中,这一切都有效。
在 Chrome 和 Safari 中,选项卡可见,但未选择默认的第一个选项卡。相应的“窗格”也被隐藏。想象一排选项卡,其下方没有任何内容,并且没有选择任何选项卡。
第一个选项卡应具有“current”类,并且窗格应具有 CSS 属性“display:block”——这正是 Firefox 所提供的。
为什么 Chrome 和 Safari 不做这种光荣的事情呢?
任何如何在不重新开始的情况下解决这个问题的想法将不胜感激。
顺便说一句,在 Chrome 和 Safari 中,分页仍然有效。接下来的页面显示正常。并且返回第一页根据需要显示内容和选择的状态。
谢谢,汤姆
I have a website in development. After login the user is taken to a page w jq tabs.
The member page has pagination - there can be more than one page for the member to look at.
To deal w the brain-ache of pagination I dumped some of the code for the member page into a function w the tabs jQuery.
In Firefox, this all works.
In Chrome and Safari, the tabs are visible but the default first tab isn't selected. The corresponding 'pane' is hidden too. Think of a row of tabs without anything below them and none of the tabs selected.
The first tab should have the class 'current', and the pane should have the CSS attribute 'display:block' - exactly what Firefox supplies.
Why won't Chrome and Safari do the honourable thing ?
Any thoughts how to solve this problem without starting over would be gratefully received.
As an aside, in both Chrome and Safari the pagination still works. The next pages show fine. And returning to the first page shows the content and selected states as required.
thanks, Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论