jQuery UI 选项卡最小样式
在我的应用程序中,到目前为止,我根本不需要加载任何 jQuery 样式表,但 UI-tabs 插件似乎需要一些 CSS 才能工作。好吧,很好,但是这些示例让您加载了所有 UI 样式,也许更重要的是,选项卡样式完全破坏了我自己的外观和感觉。
有没有地方可以学习如何为选项卡提供足够的 CSS,以便保留我自己的样式?
我不介意少量的样式有助于很好地排列选项卡或其他东西,但背景图像、颜色......它们与我自己的样式冲突非常严重。
哦,不用谢主题滚轮,我确信这对某些人来说很好。只是不是在这种情况下,谢谢。
In my application, I have so far avoided needing to load any jQuery stylesheets at all, but the UI-tabs plugin seems to need some CSS to work at all. OK, fine, but the examples have you loading ALL the UI styles and, perhaps more important, the tab styling totally ruins my own look and feel.
Is there any place to learn how I can provide just enough CSS for the tabs to work, so I can retain my own styling?
I don't mind a minimal amount of styling help to arrange the tabs nicely or something, but the background image, the colors.... they clash really bad with my own styling.
Oh, and no thanks to the Theme Roller, which I'm sure is nice for some people. Just not in this case, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看选项卡演示页面,您可以单击 Themig 选项卡来查看正在使用的样式,目前看起来像这样:
然后您可以使用 jQuery UI CSS 框架文档查找每个常规类的描述。未列出小部件特定的类,因为它们很好......每个小部件。
了解这些类的作用的最佳方法是使用 ThemeRoller,或者查看默认主题 (例如此处),只需查看这些类的 CSS,您可以使用它并根据自己的需要进行调整,这是当前的基本主题 CSS
.ui-tabs-*
类:If you look at the Tabs Demo Page you can click on the Themig tab to view which styles are in use, currently it looks like this:
Then you can use the jQuery UI CSS Framework documentation to find a description of each general class. The widget specific classes aren't listed, as they're well...per-widget.
The best way to get an idea of what those classes do is to use ThemeRoller, or look at the default theme (for example here) and just look at the CSS for those classes, you can use just that and adjust for your own needs, here's the current base theme CSS for
.ui-tabs-*
classes: