Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.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,我正在努力在导航栏中对齐我的表单,我正在使用引导,我使用了几种方法都没有用。如果有人有线索,请帮忙 <form class="navbar-form navbar-right" role="form"> <div class="form-group form-group-sm"> <label class="sr-only" for="email">E-mail address</label>

我正在努力在导航栏中对齐我的表单,我正在使用引导,我使用了几种方法都没有用。如果有人有线索,请帮忙

<form class="navbar-form navbar-right" role="form">

       <div class="form-group form-group-sm">
           <label class="sr-only" for="email">E-mail address</label>
           <input type="email" class="form-control" id="email" placeholder="Email">  
       </div>
       <div class="form-group form-group-sm">
           <label class="sr-only" for="password">Password</label>
           <input type="email" class="form-control" id="email" placeholder="Password">  
       </div>
       <div class="checkbox checkbox-sm">
          <label><input type="checkbox">Remember me</label>
       </div>
       <button type="submit" class="btn btn-info btn-sm">Sign in</button>
 </form>


电子邮件地址
密码
记得我吗
登录

您能解释一下对齐表单是什么意思吗?Bootstrap内置了一些类,如
pull left
pull right
,它们将使整个容器向左或向右浮动。还有文本对齐帮助器类。编辑:查看您的屏幕截图,您应该将
向右拉
类附加到您的复选框容器和提交按钮。您需要发布一个最小的、有效的、完整的代码示例(HTML/CSS/JS)。见和。