输入框布局:我们常常需要在输入框的前方添加提示,后方添加按钮。

.InputAddOn {
  display: flex;
}

.InputAddOn-field {
  flex: 1;
}
<div class="InputAddOn">
   <span class="InputAddOn-item">用户姓名:</span>
    <input type="text" class="InputAddOn-field" /> 
   <button type="button" class="InputAddOn-item">确定</button>
</div>

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2021-05-12
  • 2021-06-25
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案