gpt4 book ai didi

html - 如何在 Bootstrap 中添加带有文本字段的按钮?

转载 作者:行者123 更新时间:2023-11-28 01:26:26 25 4
gpt4 key购买 nike

我有下面写的代码,但我想要添加一个带有文本字段的按钮,该按钮和文本字段之间没有间隙。我应该如何更改此代码?

<div class="panel panel-default">
<div class="panel-footer">

<form>
<div >
<input id="address" type="email" placeholder="Add your email address" class="form-control" >
<button class="btn btn-default" type="button" id="addressSearch" style="background-color:#8c6666 "><font color="#ffffff" >Subscribe</font></button>

</div>

</form>
</div>

最佳答案

这是我做的:

<div class="container-fluid">&nbsp;
<div class="row">
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-footer">
<div class="input-group">
<input id="address" type="email" placeholder="Add your email address" class="form-control" /> <span class="input-group-btn">
<button class="btn btn-warning" type="button" id="addressSearch">Subscribe</button>
</span>

</div>
</div>
</div>
</div>
</div>
</div>

Here is JSfiddle demo

关于html - 如何在 Bootstrap 中添加带有文本字段的按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31907269/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com