Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.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
Html 使用twitter';s引导_Html_Css_Twitter Bootstrap - Fatal编程技术网

Html 使用twitter';s引导

Html 使用twitter';s引导,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,HTML: 好 还不错 坏的 输出: “仍然好”和“坏”应该在一行中。当我移除标签标签时,它们在一行中。但是,我需要标签,我找不到任何关于如何正确使用标签和控件行的示例 我使用最新的twitter引导版本。我用以下方式创建了相同的效果:JSFIDLE 好 还不错 坏的 您的css代码在哪里。看起来可能有一个错误,所有默认的引导css <div class="controls controls-row"> <label>Good</label&

HTML:


好
还不错
坏的
输出:

“仍然好”和“坏”应该在一行中。当我移除标签标签时,它们在一行中。但是,我需要标签,我找不到任何关于如何正确使用标签和控件行的示例


我使用最新的twitter引导版本。

我用以下方式创建了相同的效果:JSFIDLE


好
还不错
坏的

您的css代码在哪里。看起来可能有一个错误,所有默认的引导css
<div class="controls controls-row">
       <label>Good</label>

       <input type="text" class="span3" name="one">
</div>

<div class="controls controls-row">
       <label>Still good</label>

       <input type="text" class="span3" name="two">

       <label>Bad</label>

       <input type="text" class="span3" name="three">
</div>
<div class="controls controls-row">
    <label>Good</label>
    <input type="text" class="span3" name="one">
</div>
<div class="controls controls-row">
   <div class="row-fluid">
      <div class="span12">
        <div class="span6">
            <label>Still good</label>
            <input type="text" class="span12" name="two">
        </div>
        <div class="span6">
            <label>Bad</label>
            <input type="text" class="span12" name="three">
        </div>
    </div>
  </div>