2012-01-14 40 views
0

我使用jQuery Mobile的链接,我设置它像下面的改变:图标不使用jQuery移动

<a data-theme="a" data-iconpos="notext" data-icon="arrow-u" data-role="button" title="Vote Up"></a> 
<a data-theme="a" data-iconpos="notext" data-icon="arrow-d" data-role="button" title="Vote Down"></a> 

这个Inspite,图标没有发生变化,依然是被这样的: enter image description here

回答

1

你写的代码应该可以工作。我已经创建了一个基于它的小提琴,它按预期工作。

看到这里 - http://jsfiddle.net/3eMuK/

我猜你链接到您复制到您的服务器itself.The图标jQuery Mobile的使用是一个文件夹中的“图片”文件夹内,其中jQuery Mobile的CSS是jQuery Mobile的图书馆你可能没有在该文件夹中添加图标精灵。

从这里下载一个完整的JQM库和精灵 - http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.zip