jquery-mobile - jQuery 移动 : How to customize button

标签 jquery-mobile

我如何更改 <a data-role="button">按钮的背景到我的图像?另外如何在左侧的按钮顶部添加我的自定义图标?

最佳答案

给链接一个类并使用 CSS 更改背景图像。

<a data-role="button" class="my-button">

...
.my-button {
    background-image: url('images/my-button.png') !important;
}

关于jquery-mobile - jQuery 移动 : How to customize button,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7518642/

相关文章:

jquery - 在网站中查看消息到移动浏览器

jquery - 处理表单发布、nodejs 和 JQueryMobile

javascript - 使用 POST 检测成功的 html 表单提交到来自 PhoneGap、移动 jQuery 应用程序的跨域脚本

javascript - 在 Android 设备的移动浏览器上自动打开组合框

android - 如何在phonegap中发送消息和邮件(ios + android)

Jquery Mobile - radio 组更改

cordova - .live ("pageshow"..) 不适用于 Phonegap JQuery Mobile

javascript - 当滚动处于事件状态时使页脚消失

javascript - 如果在手机设置中禁用了 javascript,phonegap + jquerymobile 应用程序会工作吗?

javascript - Jquery Taphold 不适用于 DragDealerjs slider