开发者

Inline form fields: search box and button in jQuery-Mobile

This is what I am trying to achieve:

Inline form fields: search box and button in jQuery-Mobile

T开发者_如何学运维his is what I get:

Inline form fields: search box and button in jQuery-Mobile

Please view the JSFiddle of this with web-kit browser (Chrome or Safari): http://jsfiddle.net/KqEqN/

This is happening when you narrow the screen but there's still visibly enough space for the button. I've looked into CSS trying to find some sort of padding to the right of the button but couldn't. Also where the hell that horizontal line comes from?


I'm not familiar with jQuery Mobile, so I might be doing this wrong. My guess is that you must add extra classes instead of overriding jQuery Mobile's theme.

The fix involves:

.ui-input-search {
    width: 50px;
    display: inline-block;
}

Check it in action here: http://jsfiddle.net/NqFhQ/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜