Html 使用jQuery mobile更改按钮的主题

Html 使用jQuery mobile更改按钮的主题,html,jquery-mobile,Html,Jquery Mobile,我已经从jQuerymobile网站下载了主题文件,但是主题没有应用到我的按钮上,我错在哪里? 在这里的html文件中,我像这样导入了它 <link rel="stylesheet" href="css/themes/my-custom-theme.css" /> <link rel="stylesheet" href="css/themes/jquery.mobile.icons.min.css" /> <link rel="stylesheet" h

我已经从jQuerymobile网站下载了主题文件,但是主题没有应用到我的按钮上,我错在哪里? 在这里的html文件中,我像这样导入了它

<link rel="stylesheet" href="css/themes/my-custom-theme.css" />    
<link rel="stylesheet" href="css/themes/jquery.mobile.icons.min.css" />
 <link rel="stylesheet"
 href="http://code.jquery.com/mobile/1.4.2/jquery.mobile.structure-1.4.2.min.css" /> 
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> 
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script> 

按钮的代码是

 <a href="iheadache.html" data-theme="a" style="height:30px;" class="ui-btn">
 Add a log</a>

删除类ui btn并添加数据role=“button”,它应该可以工作

<a data-role="button" href="iheadache.html" data-theme="a" style="height:30px;">
 Add a log</a>

我看到您使用的是jQuery Mobile 1.4.2

data-theme=“a”
适用于此版本,但您也可以使用class
class=“ui-btn-a”

您可以在文档上检查此项: