在下拉列表旁边添加图标后如何保持宽度 [英] How to maintain the width after adding icon next to dropdown list
问题描述
根据我的代码,有什么方法可以使下拉列表与其他输入字段对齐?
我需要在下拉列表旁边添加一个图标.但是,class="form-control"
默认情况下应该是 100% 宽度,但在我添加图标后却没有.
<div class="form-group"><label asp-for="YearsAttended" class="col-md-2 control-label"></label><div class="col-md-10"><input asp-for="YearsAttended" class="form-control" min="0" value="0"/>