2012-07-07 23 views
0

這就是我的JQueryMobile按鈕:自定義jquerymobile中的按鈕?

<p><a href="#test1" data-role="button" class="testbutton1">Test 1</a></p> 

和多數民衆的CSS spezification:

.testbutton1 { 
    /* Fallback for web browsers that don't support RGBa */ 
    background-color: rgb(0, 0, 0); 
    /* RGBa with 0.6 opacity */ 
    background-color: rgba(0, 0, 0, 0.6); 
    /* For IE 5.5 - 7*/ 
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000); 
    /* For IE 8*/ 
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)"; 
} 

當我加載HTML端。什麼都沒發生? 我的錯誤是什麼?

THX提前

- 1.Update - THX你的答案! 確定這就是我支持:

<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> 
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> 

但沒有任何反應...... LOL

+0

即使沒有jquery.mobile.css,它也應該工作 - http://jsfiddle.net/Jhvqh/1/你在測試什麼瀏覽器? – 2012-07-07 20:35:12

回答

0

確保你已經包括:

  • jQuery核心
  • jQuery Mobile的
  • 的jQuery手機CSS

它應該工作 - http://jsfiddle.net/Jhvqh/

另外我不認爲你需要支持移動設備上的舊IE-s。