Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.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_Twitter Bootstrap 3 - Fatal编程技术网

Twitter bootstrap 同一行文本未垂直对齐

Twitter bootstrap 同一行文本未垂直对齐,twitter-bootstrap,twitter-bootstrap-3,Twitter Bootstrap,Twitter Bootstrap 3,我有3个组件在一条直线上,但它没有垂直对齐。 我尝试使用垂直对齐,但这不会改变文本 正如我们所看到的,注入并不是与周期垂直对齐的。 我制作了一个演示 <div class="form-group"> <label class="col-sm-3 control-lable"> <input type="checkbox" name="injection" id="injection">Injection</label> &

我有3个组件在一条直线上,但它没有垂直对齐。 我尝试使用垂直对齐,但这不会改变文本

正如我们所看到的,注入并不是与周期垂直对齐的。

我制作了一个演示

<div class="form-group">
    <label class="col-sm-3 control-lable">
    <input type="checkbox" name="injection" id="injection">Injection</label>
    <label for="period" class="col-sm-3 control-label">Période (sem)</label>
    <div class="col-sm-6">
        <input type="number" min="0" value="52" class="form-control" id="year" name="period" placeholder="Entrer la période en semaine" data-fv-integer="true" data-fv-integer-message="La valeur doit être numérique">
    </div>
</div>

注射
佩里奥德(sem)

此外,我还说,如果我减少和增加窗口,组件的大小

大屏幕

中等

小的

小屏幕应该像大屏幕一样
大屏幕应该像中等屏幕。

你的HTML结构没有意义;您将
嵌套在彼此内部(无论如何这都不是必需的),并且没有结合使用任何
容器
元素。另外,
对于不需要,因为
表单组
用于它的位置

请参阅工作示例代码段。也许这会有帮助


医学院 迪亚贝特 注射 佩里奥德(sem) 蒂罗伊尔梅迪卡尔酒店 索维加德 内容2