2013-05-16 305 views
1

我有一個問題,我知道這不是在這個門戶上最好的問題。jquery移動按鈕顏色變化

但我的問題是,我有我的手機應用jQuery和jQuery Mobile的2個圖書館..

,並知道我有添加的按鈕具有從黑到白改變顏色..爲什麼呢?

這裏是我的代碼:

<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> 
+0

這jQuery Mobile的版本,您使用的? – Gajotres

+0

使用jquery 1.3.0 – user2232273

+0

一直是黑色的,只有今天我打開我的應用程序和按鈕是白色 – user2232273

回答

3

今天的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> 

Stable版本:http://jsfiddle.net/Gajotres/nx5hm/

最新unstable版:http://jsfiddle.net/Gajotres/2excE/

+0

我有的版本..今天不工作?怎麼運行的??? – user2232273

+0

,你有right.i已經改變了圖書館和我以前的工作..多謝了 – user2232273

+0

你正在使用jQuery Mobile版本開發人員正在使用的開發,它通常是一個不穩定的版本。 – Gajotres