使用bootstrap为什么这些标签和输入控件不会出现在同一行上

时间:2017-02-23 04:08:35

标签: html twitter-bootstrap

为什么标签和Field(只是输入的包装器)不会显示在同一行上?

我相信我遵循此处的简单说明:https://www.w3schools.com/bootstrap/bootstrap_grid_medium.asp

<div className="container">
    <div className="row">
        <label htmlFor="something" className="col-sm-2 col-form-label">Somethingwefwef</label>
        <Field className="col-sm-10" name="something" type="text" component="input" className="form-control" />
    </div>
</div>

1 个答案:

答案 0 :(得分:1)

你的整个加价是有问题的。请仔细阅读本教程。

你应该这样做

> time1 == time2.to_datetime
 => false 
> time1
 => Thu, 23 Feb 2017 10:50:27 +0630 
> time2.to_datetime
 => Thu, 23 Feb 2017 10:50:27 +0630 

相关问题