我刚刚开始使用jQuery Mobile作为ASP.NET网站,它将有一些专为触摸/平板电脑访问而设计的页面。 JQM当然似乎要走的路,但由于某些原因,我无法得到图标显示,即使我把它很简单,只用CDN托管JS和CSS,如下:jQuery Mobile 1.4.4 - 图标没有显示
<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进行测试 - 但肯定这不会是问题吗?任何人都可以确认这应该工作?
乔恩
浏览器是否支持SVG? – Omar 2014-09-25 16:54:48
@omar - 好点 - OP - 查看此更新可能需要IE11上的svg图标 - http://support2.microsoft.com/kb/2925451 - 或者访问 - http://demos.jquerymobile .com/1.4.4 /图标/ - 在平板电脑上查看图标是否正确显示 – Tasos 2014-09-25 17:34:05
我应该想到这一点 - 但是,图标确实显示在演示页面中,所以不是浏览器问题。 – 2014-09-26 06:47:32