我有一个问题,但我知道这不是此门户上最好的问题。
但我的问题是我的移动应用程序上有 2 个 jquery 和 jquery mobile 库..
并且知道我添加的按钮的颜色已从黑色变为白色..为什么?
这是我的代码:
<link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.css">
<script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<script src="http://code.jquery.com/mobile/latest/jquery.mobile.js"></script>
<a href="#myPanel" data-icon="search" data-iconpos="notext" class="ui-btn-right" data-inline="true" data-direction="reverse">Search</a>
最佳答案
今天版本的 jQuery Mobile css 文件有错误,并且样式未应用于您的按钮。建议,切勿使用最新的 jQuery Mobile 文件。
现在使用这个稳定的 1.3.1 版本:
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
关于jquery移动按钮颜色改变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16597528/