gpt4 book ai didi

html - 我无法在图像中间找到搜索表单

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

我试图将我的搜索栏定位在图像的中间。我尝试了以下代码但仍然无法正常工作。有任何想法吗?

.headerimage{ background:#000; position:relative;}
.btn-wrapper{ text-align:center; position:absolute; bottom: 50px; margin: 50 auto; width:100%;}
.img-responsive{
width:100% !important;
border-radius:0 0 5px 5px !important;
}
 <section id="contact border-bottom">
<div class="container">
<div class="row">
<div class="col-lg-12 mx-auto text-left">
<h2 class="section-heading">Locate a Store!</h2>
<br>
<p class="mb-5"> Some Text </p>
</div>
</div>
<div class="container-fluid headerimage" style="padding:0 !important">
<div class="col-md-12" style="padding:0 !important">
<img class="w3-image" src="{% static 'locator/img/map.png' %}" alt="map" width="1500" height="500">
</div>
<div class="container">
<div class="btn-wrapper">
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</section>

最佳答案

.btn-wrapper {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

关于html - 我无法在图像中间找到搜索表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54396340/

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