2012-07-16 48 views
1

我有3個文本域,我設計如下。我希望它們是水平的並且出現在一行中。但他們在垂直3行。有人能幫我嗎?獲取文本域水平

<fieldset data-role="controlgroup" data-type="horizontal"> 
    <legend>The 3 values:</legend> 
    <input type="text" id="basic1" value=""> 
    <input type="text" id="basic2" value=""> 
    <input type="text" id="basic3" value=""> 
</fieldset> 

回答

0

將三個EditText S IN一個horizonatlLinearLayout

+0

我正在使用帶phonegap的HTML。 – harsh 2012-07-16 05:21:10

0

必須定義每個輸入字段的寬度。

<fieldset data-role="controlgroup" data-type="horizontal"> 
     <legend>The 3 values:</legend> 
     <input style="width:30px; " type="text" id="basic1" value=""> 
     <input style="width:30px;" type="text" id="basic2" value=""> 
     <input style="width:30px; "type="text" id="basic3" value=""> 
    </fieldset> 
+0

我已經試過了。但是它仍然可以讓它們垂直。 – harsh 2012-07-16 05:35:33

+0

我也試過後,我回答,你檢查它在模擬器或設備上? – Furqi 2012-07-16 05:39:42

+0

模擬器..它會影響? – harsh 2012-07-16 05:42:06