有没有办法自定义jquery mobile以包含与hijax和ajax相关的所有功能?
我正在使用下面的构建器。 通过选择所有导航选项(在工具上),它将自动加载依赖项,但在测试自定义js和css后,hijax不起作用。
jQuery Mobile下载生成器
正常版本工作正常,但我不希望它像往常一样在jquery mobile上自定义所有UI。 而且我也不需要链接和表单上的任何其他小部件而不是导航(hijax,ajax)。
谢谢
is there a way to customize jquery mobile to include all the functionality related to hijax and ajax?
I'm using the below builder. By selecting all the navigation options (on the tool) it will automatically load the dependencies but after testing the custom js and css the hijax doesn't work.
jQuery Mobile Download Builder
The normal release works fine but i don't want it to customize all the UI as usual on jquery mobile. And i also don't need any other widget than navigation (hijax, ajax) on links and forms.
Thanks
最满意答案
我错误地导入了jquery移动构建器工具生成的CSS自定义文件。 问题有一个简单的解决方案:
确保您需要以下CSS文件:
jquery.mobile.custom.theme.css jquery.mobile.custom.structure.css在css文件夹中创建一个名为images的新文件在那里你应该有loader.gif
此外,在文档的标题处,在css之后,确保加载jquery,然后加载jquery.mobile和自定义构建。
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script> <script src="js/jquery.mobile.custom.js"></script> <script src="js/jquery-ui-1.10.1.custom.min.js"></script>By mistake I didn't import a CSS custom file generated by the jquery mobile builder tool. The problem had an easy solution:
Ensure that you require the following CSS files:
jquery.mobile.custom.theme.css jquery.mobile.custom.structure.cssAt the css folder create a a new one called images There you should have the loader.gif
Also, at the heading of the document, after the css, ensure that jquery is loaded followed by jquery.mobile and the custom build.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script> <script src="js/jquery.mobile.custom.js"></script> <script src="js/jquery-ui-1.10.1.custom.min.js"></script>更多推荐
发布评论