Html 设置spinbox位置JQuery Mobile(css)

Html 设置spinbox位置JQuery Mobile(css),html,css,jquery-mobile,Html,Css,Jquery Mobile,只是不知道如何将此微调框放置在右上角,与左上角按钮的边距相同。这是我所能得到的,但是这个方法的标题似乎消失了。还尝试在DOM加载后使用jQuery设置属性,将其放置在内部等。。有人能帮我做一下吗,把它放在深灰色标题中,与“terug”按钮的边距相同?下面是我当前的HTML代码,下面是当前的情况以及我想要它的方式 <div data-role="page" id="RoomList"> <div data-role="header" data-position="fixed"&g

只是不知道如何将此微调框放置在右上角,与左上角按钮的边距相同。这是我所能得到的,但是这个方法的标题似乎消失了。还尝试在DOM加载后使用jQuery设置属性,将其放置在内部等。。有人能帮我做一下吗,把它放在深灰色标题中,与“terug”按钮的边距相同?下面是我当前的HTML代码,下面是当前的情况以及我想要它的方式

<div data-role="page" id="RoomList">
<div data-role="header" data-position="fixed">
    <%--<h1>Ruimten</h1>--%>
    <a href="#InventoryDetails" data-icon="back" class="ui-btn-left">Terug</a>

    <div data-role="controlgroup" data-type="horizontal" class="ui-mini ui-btn-right">
        <input id="PageNavigator" type="number" data-role="spinbox" value="1" data-mini="true" style="text-align:center; width:40px;" />
    </div>

</div>
<div data-role="content">
    <div class="scrollable">
        <table data-role="table" class="ui-responsive ui-table ui-table-reflow"><tbody></tbody></table>
    </div>
</div>

当前情况:

我希望它是怎样的:


非常感谢

我认为你的标题有问题。如果因为需要动态设置而以空标题开始,则可能需要设置占位符文本、添加跨度并填充该文本,或者使用
ui title

这里有一个例子。关于SpinBox,我刚刚删除了您的双
controlgroup
嵌套

/*
*ahaith/jquery移动spinbox
*从jtsage/jquery mobile spinbox分叉
* https://github.com/ahaith/jquery-mobile-spinbox
*/
/*
*jQuery移动框架:提供数字微调框的插件。
*版权所有(c)JTSage
*CC 3.0属性。可在未经许可/通知的情况下重新许可。
* https://github.com/jtsage/jquery-mobile-spinbox
*/
(函数($){
$.widget(“mobile.spinbox”{
选项:{
//所有小部件选项
德明:错,
dmax:错,
步骤:错误,
主题:假,
迷你:空,
雷普巴顿:是的,
版本:“1.4.4-2015092400”,
initSelector:“输入[data role='spinbox']”,
clickEvent:“vclick”,
类型:“水平”、//或垂直
},
_小数位数:函数(num){
变量匹配=(''+num).match(/(?:\。(\d+))(?:[eE]([+-]?\d+)))$/;
如果(!match){返回0;}
返回Math.max(
0,
(匹配[1]?匹配[1]。长度:0)
-(匹配[2]?+匹配[2]:0)
);
},
_sbox_运行:函数(){
var w=这个,
定时器=150;
如果(w.g.cnt>10){timer=100;}
如果(w.g.cnt>30){timer=50;}
如果(w.g.cnt>60){timer=20;}
w、 g.didRun=true;
w、 _偏移量(此,w.g.delta);
w、 g.cnt++;
w、 runButton=setTimeout(函数(){w.\u sbox\u run();},计时器);
},
_偏移:功能(obj,方向){
var tmp,
w=这个,
o=此选项;
如果(!w.已禁用){
如果(方向<1){
tmp=(parseFloat(w.d.input.val())-o.step.toFixed(w.places);
如果(tmp>=o.dmin){
w、 d.输入值(tmp).触发器(“更改”);
}
}否则{
tmp=(parseFloat(w.d.input.val())+o.step.toFixed(w.places);
如果(tmp