【发布时间】:2015-04-16 13:51:01
【问题描述】:
为什么我的 Bootstrap 输入不能右对齐(=> 请参阅第 3 个输入,占位符='不右对齐')?
td 表格元素具有定义对齐方式的样式...
当我在设置输入样式 text-align=right 时从 td 元素中删除样式元素时,它仍然是左对齐的。
<div class="row">
<div class="col-md-6">
<div class="well" style="width:840px">
<table class='table borderless' style="width:800px">
<tr>
<td colspan="2">
<input class="form-control input-sm" style="width:300px;margin-bottom:0px" type="text" name="input1" placeholder="Input 1">
<input class="form-control input-sm" style="width:300px;margin-bottom:0px" type="text" name="input2" placeholder="Input 2">
</td>
</tr>
<tr>
<td colspan="2" style="text-align: right">
<input class="form-control input-sm" style="width:300px;margin-bottom:0px" type="text" name="input3" placeholder="Does not align right">
</td>
</tr>
<tr>
</table>
</div>
</div>
</div>
【问题讨论】:
标签: html css twitter-bootstrap