gpt4 book ai didi

html - 删除 Bootstrap 输入插件中文本的最后一个边距

转载 作者:太空宇宙 更新时间:2023-11-04 11:03:52 25 4
gpt4 key购买 nike

我试图在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com