Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.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
Twitter bootstrap 在一个输入组中有两个带有表单控件的输入(引导)_Twitter Bootstrap - Fatal编程技术网

Twitter bootstrap 在一个输入组中有两个带有表单控件的输入(引导)

Twitter bootstrap 在一个输入组中有两个带有表单控件的输入(引导),twitter-bootstrap,Twitter Bootstrap,我想在一个输入组中插入两个输入,如下所示: <div class="row"> <div class="col-md-4"> <div class="input-group"> <input type="text" placeholder="Username" name="username" id="username" size="10" class="form-control" title="Userna

我想在一个输入组中插入两个输入,如下所示:

<div class="row">
    <div class="col-md-4">
        <div class="input-group">
            <input type="text" placeholder="Username" name="username" id="username" size="10" class="form-control" title="Username" style="width: 117px;" autocomplete="off">   
            <input type="password" placeholder="Password" name="password" id="password" size="10" class="form-control" title="Password" style="width: 117px;" autocomplete="off">
            <span class="input-group-btn" style="width: 0px;">
                <input type="hidden" name="redirect" value="./viewtopic.php?f=2">
                <input type="submit" name="login" value="Login" class="btn btn-primary" data-original-title="" title="" data-style="zoom-in"></input>
            </span> 
        </div>
    </div>
</div>

但是引导调试器说,IIT无效:


那么我该如何解决这个问题呢?

您考虑过只使用内联表单吗?是的,我有,但是输入组是表单horizonal的一部分,所以我不能使用它:/简言之,您的问题的答案是“否”。Bootstrap不喜欢它。不管怎样,只要你不在乎,这是可以做到的。但是,为了正确回答,请给我们更多的代码(整个表单可能会很有用)。这在某些方面是可以做到的,但这一切都取决于你的外表:)