我正在使用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>
Run Code Online (Sandbox Code Playgroud)
我希望它们并排显示(内联).但我无法弄明白.我做了这个,但它不起作用.你能帮我吗 ?这是我的css:
#propart .ui-select {
width:75%;
}
#propart .ui-select .ui-btn-icon-right {
width:100%;
}
#propart .ui-btn {
width:25%;
}
Run Code Online (Sandbox Code Playgroud)
使用ui-grid
类,并覆盖它们的宽度.
标记
<div class=ui-grid-a>
<div class=ui-block-a>button 1</div>
<div class=ui-block-b>button 2</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS
.ui-block-a { width: 75% !important; }
.ui-block-b { width: 25% !important; }
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4248 次 |
最近记录: |