gpt4 book ai didi

html - 同一行上的两个输入按钮

转载 作者:太空宇宙 更新时间:2023-11-03 23:26:16 25 4
gpt4 key购买 nike

我想让两个按钮在同一行上。

有什么建议吗?

<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please login your account...</h3>
</div>
<div class="panel-body">

<form action="" method="post" role="form" class="form-horizontal">

<input class="btn btn-primary" style="margin-top:.75em;width: 100%; height: 32px; font-size: 13px;" type="submit" name="commit" value="Sign In"><input class="btn btn-primary" style="margin-top:.75em;width: 100%; height: 32px; font-size: 13px;" type="submit" name="commit" value="Sign In">
</form>
</div>
</div>
</div>
</div>
</div>

fiddle : http://jsfiddle.net/a65oc6f3/

最佳答案

您不希望两个按钮都具有 100% 的宽度,试试这个:

<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please login your account...</h3>

</div>
<div class="panel-body">
<form action="" method="post" role="form" class="form-horizontal">
<input class="btn btn-primary" style="margin-top:.75em;width: 50%; height: 32px; font-size: 13px; float:left" type="submit" name="commit" value="Sign In">
<input class="btn btn-primary" style="margin-top:.75em;width: 50%; height: 32px; font-size: 13px" type="submit" name="commit" value="Sign In">
</form>
</div>
</div>
</div>
</div>

fiddle :here

关于html - 同一行上的两个输入按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26835805/

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