HTML/JavaScript 选项卡优雅降级
试图在我正在构建的网站上找到基于选项卡式导航的良好解决方案。目前我正在使用 jquery ui 选项卡,但不喜欢在 JavaScript 关闭时降级时的默认行为。想知道这可能有什么好的解决方案。我对任何解决方案都持开放态度,并且对相关技术感到满意。网站正在使用 c# mvc3 构建。
Trying to find a good solution for tabbed based navigation on a website that I'm building. Currently I'm using jquery ui tabs but don't like the default behavior when it degrades with JavaScript turned off. Was wondering what some good solutions for this might be. I'm more than open to any solution and I'm comfortable with the relavant technologies. Website is being built in c# mvc3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的解决方案是简单地链接到单独的文件,例如:
和 样式它们看起来像选项卡。
或者,您可以设计一些简单的东西,然后通过 Javascript 为拥有它的用户添加样式表。
The simplest solution would be to simply link to separate files, e.g. :
And style them to look like tabs.
Alternatively, you could design something simple, and then add a stylesheet through Javascript for users that have it.