gpt4 book ai didi

jquery-mobile - jquery-mobile 并排按钮

转载 作者:行者123 更新时间:2023-12-04 07:28:52 28 4
gpt4 key购买 nike

我正在使用 jquery-mobile,我有这两个按钮:

<p id="propart">Pro:
<select id="chosenpro" data-inline="true"></select>
<button type="button" id="resetbutton" data-inline="true" data-theme="w">Reset</button>
</p>

我希望它们并排显示(内联)。但我想不通。我做了this但它不起作用。你能帮我吗 ?这是我的 CSS:

#propart .ui-select {
width:75%;
}
#propart .ui-select .ui-btn-icon-right {
width:100%;
}
#propart .ui-btn {
width:25%;
}

最佳答案

使用 ui-grid 类,并覆盖它们的宽度。

Demo

标记

<div class=ui-grid-a>
<div class=ui-block-a>button 1</div>
<div class=ui-block-b>button 2</div>
</div>

CSS

.ui-block-a { width: 75% !important; }
.ui-block-b { width: 25% !important; }

关于jquery-mobile - jquery-mobile 并排按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16148692/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com