gpt4 book ai didi

html - 将搜索表单拉到井内的右侧

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

我正在尝试让搜索表单在井内向右拉。它向右拉,但向井的南边移动。

我的代码是;

<div class="container">
<div class="well">

<div class="pull-right">
<form class="form-inline " role="form">
<input type="search" class="form-control" id="search" placeholder="Search Assets">
<button type="submit" class="btn btn-default">Search</button>
</form>

</div>

我在 http://jsfiddle.net/52VtD/3366/ 做了一个 jsfiddle

最佳答案

您需要在 float div 之后清除 float 。

Here

<div class="container">
<div class="well">
<div class="pull-right">
<form class="form-inline " role="form">
<input type="search" class="form-control" id="search" placeholder="Search Assets">
<button type="submit" class="btn btn-default">Search</button>
</form>
</div>

<div class="clearfix"></div>
</div>
</div>

关于html - 将搜索表单拉到井内的右侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22235937/

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