jQuery Mobile 1.4.4 - 图标没有显示

时间:2014-09-25 16:36:02

标签: jquery-mobile

我刚刚开始在一个ASP.NET网站上使用jQuery Mobile,该网站将专门设计用于触摸/平板电脑访问的某些页面。 JQM肯定是要走的路,但由于某种原因我无法显示图标,即使我非常简单并只使用CDN托管的JS和CSS,如下所示:

<head runat="server">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/jquery.mobile-1.4.4.min.js" ></script>
</head>

然后在体内:

<div data-role="main" class="ui-content">
<a href="#options" class="ui-btn ui-btn-inline ui-shadow ui-corner-all ui-icon-grid ui-btn-icon-left" data-rel="dialog">Options</a>

这一切似乎都是标准的。我能想到的唯一可能的事情是我正在使用运行Windows 8.1 RT和IE11的Microsoft Surface 2进行测试 - 但这肯定不是问题吗?任何人都可以确认这应该有用吗?

乔恩

1 个答案:

答案 0 :(得分:0)

mmh ..这应该有效,但是,你应该避免data-rel =&#34;对话框&#34; (已弃用),而是data-rel =&#34; popup&#34;并设置data-dialog =&#34; true&#34;在对话框页面中。

相关问题