基本代码:

<form class="form-inline my-2 my-lg-0" role="search" method="get" action="/Search/SearchList" target="_blank">
<div class="input-group">
<input type="text" class="form-control" name="keyword" placeholder="全站检索">
<span class="input-group-btn">
<button type="submit" class="btn btn-secondary">搜索</button>
</span>
</div><!-- /input-group -->
</form>



默认位置代码:

<form class="form-inline" role="search" action="/Search/SearchList" method="get" target="_blank">
<div class="form-group">
<input name="KeyWord" class="form-control mr-sm-2" type="text" placeholder="全站搜索">
</div>
<button class="btn my-2 my-sm-0" type="submit" style="background:none; margin-left:-3rem; color:#ff9d00;" ><i class="zi zi_search" ></i></button>
</form>



右对齐代码:

<form class="form-inline" role="search" action="/Search/SearchList" method="get" target="_blank">
<div class="form-group">
<input name="KeyWord" class="form-control mr-sm-2" type="text" placeholder="全站搜索">
</div>
<button class="btn my-2 my-sm-0" type="submit" style="background:none; margin-left:-3rem; color:#ff9d00;" ><i class="zi zi_search" ></i></button>
</form>



组合代码:

<form class="form-inline" role="search" action="https://www.z01.com/Search/SearchList" method="get" target="_blank"> <div class="input-group"> <input name="KeyWord" class="form-control" type="text" placeholder="全站搜索"> <div class="input-group-append"> <button class="input-group-text" type="submit" ><i class="zi zi_search" ></i></button> </div> </div> </form>