【发布时间】:2011-12-10 19:24:11
【问题描述】:
我搜索了如何将 jQuery Mobile 中的默认按钮替换为自定义图像,因为我正在实现代码来构建 PhoneGap 应用程序。我找到了这个one useful link。
我有这样的代码:
<a href="#user_info" data-role="button" data-theme="b" data-iconpos="right" data-icon="myapp-custom">Custom Icon</a>
CSS 是:
.ui-icon-myapp-settings {
background: url("settings.png") no-repeat rgba(0, 0, 0, 0.4) !important;
}
它仍然显示一个 + 图标而不是我的图标。
css directory -- ../css/style.css
image directory ../css/images/settings.png
我得到如下视图:
代码或图片位置有什么问题?
【问题讨论】:
标签: css image button jquery-mobile