我试图在 Bootstrap 的“输入插件”上删除文本的最后一个边距。
我借了一把 fiddle :
http://jsfiddle.net/Dzhz4/250/
HTML
<div class="input-group">
<div class="input-group-addon">Lit:</div>
<input type="text" style="width: 40px" class="form-control input-sm"/>';
</div>';
CSS
.input-group-addon {
max-width:30px;
text-align:left !important;
}
编辑
我学会了,我需要填充。不是 margin 。
最佳答案
这是填充
而不是边距
。
.input-group-addon {
min-width: 300px;
text-align: left;
padding-left: 0;
}
http://jsfiddle.net/Dzhz4/252/
使用 Chrome 开发工具之类的工具对于查找此类内容非常有用。我建议学习如何使用元素检查器作为起点。
关于html - 删除 Bootstrap 输入插件中文本的最后一个边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34137133/