是否可以在桌面浏览器上添加一些按钮的jquery移动外观和感觉?
我包含了jquery移动css和js文件,当我单击按钮时,它正在做一些幕后的事情,而不是真正带我去我的目的地。当我移除JS (桌面上奇怪行为的原因)时,按预期的那样,按钮不会以我想要的方式呈现。
理想情况下,我只想看到显示按钮的纯css和简化的JS,这样我就可以将它添加到桌面布局中,如果可以这样做的话,这对我的目的是有用的。
不过,我真的不想挖掘所有jquery移动js文件,并弄清楚到底是怎么回事才能把它们拼凑在一起。
我如何才能削减我需要的东西,使我的按钮呈现在桌面上,外观/感觉与移动设备w/o移动设备功能相同。
编辑的答案如下:
这就是我现在在我的桌面页面上调用的内容:
<link href="/Content/jquery.mobile.custom.structure.min.css" rel="stylesheet" type="text/css" />
<link href="/Content/jquery.mobile.custom.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/content/mobile/themes/LS.min.css" />
<script src="/Scripts/jquery.mobile.custom.min.js"></script>然后按这个按钮:
<a data-role="button" data-theme="a" href="/home/foldit" data-icon="star">
Fold It
</a>这是显示我的按钮的文本表示,而不是呈现按钮。我没有从包中包含的唯一文件是“自定义主题”css文件,因为我认为我的主题应该取代它。( LS.min.css文件)。
发布于 2012-12-14 20:29:18
是的,这是可能的。
您可以重新构建jQuery移动框架并只使用所需的模块。
转到这里:http://jquerymobile.com/download-builder/,只选择你想要的。
*We’ve decoupled all of our plugins and have a clear dependency map which allows us to offer the download builder tool (Alpha) to let you build the leanest package possible.*它只适用于jQM 1.1.1到1.2
https://stackoverflow.com/questions/13885711
复制相似问题