jQuery UI:DatePicker 仅 CSS?
我同时使用 jQuery UI 手风琴和日期选择器。
手风琴效果很好,但是当我将 CSS 文件添加到页面(日期选择器需要)时,一切都变得疯狂。我看到该脚本向两个小部件添加了各种类。有没有办法获得一个仅适用于日期选择器的单独 CSS?我尝试从他们的网站下载不同的文件,但没有任何效果。有什么建议吗?
I'm using both the jQuery UI accordion and the datepicker.
The accordion works great, but when I add the CSS file to the page (which is needed by the datepicker), everything goes nuts. I see that the script adds all kinds of classes to both widgets. Is there any way to get a separate CSS that only works for the datepicker? I tried downloading different files from their site, but nothing worked. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
仅日期选择器(jquery.ui.datepicker.css):
仅手风琴(jquery.ui.accordion.css):
您还需要基本主题(jquery.ui.theme.css):
Datepicker only (jquery.ui.datepicker.css):
Accordion only (jquery.ui.accordion.css):
You'll also need the base theme (jquery.ui.theme.css):
是的,你可以。使用 jquery UI themeroller
scope
。在下载部分的右侧栏中(在主题下拉菜单下)有一个链接可以打开高级菜单。您为范围输入的值可以是自定义类 - 例如 .ui-stylized 或您希望 css 应用到的任何类。如果您愿意,您甚至可以混合搭配整个主题。
我建议使用 themeroller 来修改任何 jquery ui 特定的 CSS。
干杯!
Yes you can. Using the jquery UI themeroller
scope
.In the right hand column of the download section (under the theme drop-down menu) There is a link to open the advanced menu. The value you input for the scope can be a custom class - such as
.ui-stylized
or whatever you class you want the css to apply to. You can even mix and match entire themes if you'd like.I would recommend using the themeroller to modify any jquery ui specific CSS.
Cheers!
日期选择器的 CSS 是否会影响手风琴布局/可用性?最简单的解决方案是使用特定的类将每个项目包装在其自己的 div 中,然后使用该类来定制 CSS。
Is the issue that the CSS for the datepicker affects the accordion layout/usability? Easiest solution is to wrap each item in it's own div with a specific class then use that class to tailor the CSS.