【发布时间】:2015-06-23 03:33:24
【问题描述】:
我在翡翠中有以下几点:
+autoForm(id=decidedChargeBoxForm collection="Products" doc=this type="update" class="form-inline")
+costFormGroup(name="decidedCharge")
这个在 html 中:
<template name="costFormGroup">
<div class="form-group{{#if afFieldIsInvalid name=name}} has-error{{/if}}">
<div class="input-group">
<div class="input-group-addon">$</div>
{{> afFieldInput name=name placeholder="schemaLabel" label=false}}
</div>
{{#if afFieldIsInvalid name=name}}
<span class="help-block">{{afFieldMessage name=name}}</span>
{{/if}}
</div>
</template>
我正在利用bootstrap's inline form class,虽然它正确地使表单元素没有扩展到全宽,但它没有显示内联。相反,它会中断到下一行。截图如下:
我把它扔进了我的css:
.form-inline {
display: inline;
}
它按预期工作,但我很困惑为什么 step 甚至是必要的。
.form-inline 引导类的默认行为不应该在我的情况下解决这个问题吗?我做了哪些不同的事情需要我采取这个额外的步骤?
【问题讨论】:
标签: html css meteor twitter-bootstrap-3 meteor-autoform