Bootstrap4 使所有输入组插件宽度相同 [英] Bootstrap4 make all input-group-addons same width
问题描述
是否可以使所有前置附加组件的宽度相同?
即在此屏幕截图中,我想要电子邮件、许可证密钥 1 和许可证密钥 2 的长度相同,这是可能的.
如果我不使用附加组件而只使用常规标签和表单网格,这是可能的,但似乎前置附加组件看起来比常规标签好得多.
相关的 Html 是
<form action="/license.process" name="process" id="process" method="post"><div class="input-group mb-2"><div class="input-group-prepend"><label class="input-group-text" id="licenseEmaillabel">电子邮件标签>
<input type="text" name="licenseEmail" value="paultaylor@jthink.net" class="form-control" aria-writtenby="licenseEmaillabel">
<div class="input-group mb-2"><div class="input-group-prepend"><label class="input-group-text" id="licenseKey1label">许可证密钥 1标签>
<input type="text" name="licenseKey1" value="51302c021440d595c860233f136731865a12cfad2ce2cc2" class="form-control" aria-描述by="licenseKey1label">