Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 使文本字段水平_Android_Html_Cordova - Fatal编程技术网

Android 使文本字段水平

Android 使文本字段水平,android,html,cordova,Android,Html,Cordova,我有3个文本字段,我设计如下。我希望它们是水平的,并显示在一行中。但它们垂直排列在三条线上。有人能帮我吗 <fieldset data-role="controlgroup" data-type="horizontal"> <legend>The 3 values:</legend> <input type="text" id="basic1" value=""> <input type="text" id="basic

我有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>

这3个值:

将三个
编辑文本
放置在
水平布局中
线性布局
您必须定义每个输入字段的宽度

    <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>

这3个值:

我正在将HTML与phonegap一起使用。在回答问题之后,我也尝试过,在模拟器上或在模拟器上的设备上检查它。。它会影响吗?我也在模拟器上检查过它对我有效你可以用float left检查谢谢你furqi。我找不到做这件事的方法。无论如何,谢谢你的支持。@y?它对我有用,伙计,你在哪个模拟器上工作?