使 jqueryUI 主题选择器小部件与 css 文件的 localhost 版本一起使用
jQueryUI 主题选择器小部件非常棒,我真的很想将它用于 ASP.NET 中的项目。但是主题选择器从 jQuery 网站加载文件,这是不必要的,因为我有它的副本。我确实从这里研究了主题切换器小部件创建的代码 http://jqueryui.com/themeroller/ themeswitchertool/ 和 url 是硬编码的。好吧,我不介意更改 url :) 只是想知道为什么所有这些样式和字体大小都在查询字符串中指定,以及如何让它与我的本地文件一起使用?
The jQueryUI theme picker widget is awesome and I would really like to use it for a project in ASP.NET. But the theme picker loads the files from the jQuery website which isn't necessary because I have a copy of it. I did look into the code that is created by the theme switcher widget from here http://jqueryui.com/themeroller/themeswitchertool/ and the urls are hardcoded. Well I don't mind changing the url's :) just wondered why all those styles and font sizes have been specified in the query string and how can I get it to work with my local files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这非常简单。在研究了主题切换器小工具之后,我了解到主题的 html 标记也是硬编码的。如果您想添加自定义主题,以下是您要添加的新主题的外观的片段。
您只需创建一个主题在图像编辑器中的外观图像,将链接拖放到 css 即可。
It's dead simple. After looking into the theme switcher gadget i was able to understand that html markup for the themes too are hard coded. Here is a snippet of how your new to be added theme should look if you wanted to add custom themes.
you just have to create a image of for how the theme looks in image editor, drop the link to css that's it.