提问人:brendo234 提问时间:11/14/2023 最后编辑:brendo234 更新时间:11/14/2023 访问量:25
带有输入组的按钮工具栏 - 输入组采用全宽,将按钮推到下一行
Button Toolbar with Input Group - Input group takes full width, pushing button to next line
问:
似乎无法在同一行上获取 btn 工具栏中的所有项目。第一个输入组在所有屏幕尺寸上扩展到全宽,将下一个按钮/btn-group 推到下一行。
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<div class="row">
<div class="col-8">
<div class="btn-toolbar" role="toolbar" aria-label="Quantity Toolbar">
<div class="input-group me-2" role="group" aria-label="Quantity Toolbar">
<button class="btn btn-outline-secondary" type="button" id="button-addon1"><i class="bi bi-dash"></i></button>
<input type="text" id="8209_qty" maxlength="3" value="1" class="form-control form-control-sm text-center" style="flex-grow:0; flex-basis:40px;">
<button class="btn btn-outline-secondary" type="button" id="button-addon2"><i class="bi bi-plus"></i></button>
</div>
<div class="btn-group" aria-label="Delete Item Toolbar">
<button class="btn btn-outline-danger" type="button" id="button-trash"><i class="bi bi-trash3"></i></button>
</div>
</div>
</div>
<div class="col-4 text-end">$499.95</div>
</div>
答: 暂无答案
评论