【发布时间】:2021-02-13 01:03:02
【问题描述】:
我创建了一个表单。在那,我需要在同一行添加文本框和提交按钮。
<div class="input-group">
<form action="searchresult.php" method="post">
<input type="text" name= "searchtext" class="form-control" placeholder="Search">
<button class="btn btn-secondary" type="submit">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-search" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414
1.415l-3.85-3.85a1 1 0 0 1 0-1.415z"/>
<path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5
6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"/>
</svg>
</button>
</form>
</div>
【问题讨论】:
标签: html css forms textbox submit