[英]Use different sizes in JQuery mobile project, data-icon
I want to do this: http://prntscr.com/1zk1wt but every button in the app use .ui-icon
style as default 我想这样做: http : //prntscr.com/1zk1wt,但是应用程序中的每个按钮都默认使用
.ui-icon
样式
.ui-icon {
width: 18px;
height: 18px;
}
When I try to use this (to make "leave", "extra" and "reset" buttons bigger) remark: .menu_header contains .ui-icon style and this 当我尝试使用此按钮(使“ leave”,“ extra”和“ reset”按钮变大)备注:.menu_header包含.ui-icon样式,并且此
note overrides default .ui-icon: 注意会覆盖默认的.ui-icon:
.menu_header .ui-icon {
width: 36px;
height: 36px;
}
but does not affect the whole button and I take this http://prntscr.com/1zk2j7 . 但不会影响整个按钮,因此我选择了http://prntscr.com/1zk2j7 。 As you see, the text placed under block 18x18px.(( Html code to initialize buttons:
如您所见,文本放置在18x18px块下。(((用于初始化按钮的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>
How to place text under the button image? 如何在按钮图像下放置文本?
It's impossible. 不可能。 I used standart html syntax for create buttons with different size.
我使用了标准的html语法来创建大小不同的按钮。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.