html - 在 JQuery 移动元素中使用不同大小的数据图标

标签 html css jquery-mobile

我想这样做: http://prntscr.com/1zk1wt 但是应用程序中的每个按钮都默认使用 .ui-icon 样式

.ui-icon {
    width: 18px;
    height: 18px;
}  

当我尝试使用它时(使“离开”、“额外”和“重置”按钮变大) 备注:.menu_header 包含.ui-icon 样式和this
注意覆盖默认的 .ui-icon:

.menu_header .ui-icon {
    width: 36px;
    height: 36px;
}

但不影响整个按钮和 我拿这个http://prntscr.com/1zk2j7 .如您所见,文本放置在 18x18px block 下。(( 初始化按钮的 HTML 代码:

<a data-role="button" data-icon="out" data-iconpos="top" data-inline="true" data-      mini="true"id="winner_screen_leave_game_button" class="ui-btn-left custom_icon_button" style="color: #4d4d4d;">Leave Game</a>

如何在按钮图片下方放置文字?

最佳答案

这是不可能的。我使用标准的 html 语法来创建不同大小的按钮。

关于html - 在 JQuery 移动元素中使用不同大小的数据图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19583765/

相关文章:

css - 网页上的奇怪空间,CSS相关

html - 进入下拉菜单时,HTML代码内出现问题

html - CSS3,如何使我的渐变 WebKit 背景透明?

javascript - 为什么我的 helloworld 程序中没有定义 ReactDOM?

css - JSF : Changing component style in jSTL c:foreach array not working

jquery - 我可以修复 jQueryMobile 对话框的宽度和高度吗?

jquery - 背景图片不合适

jquery - !important 重写

javascript - jQuery .keyPress() - 如何获取触发事件的输入值?

html - 如何选择除特定类及其后代之外的所有元素?