gpt4 book ai didi

html - 如何对齐搜索框旁边的按钮

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

我正在尝试将搜索按钮对齐到搜索框旁边,但按钮似乎在下方。这是我得到的:

        <form action="{linkto page="search.php"}" method="get" id="searchFormTest">
<input type="text" id="searchPhrase" name="searchPhrase" class="searchInputBox" value="{$lang.enterKeywords}" placeholder="Suchbegriff oder Bildnummer">
<div style="display: inline;">
<button type="submit" value="Submit">
<i style="font-size: 40px;" class="fa fa-search" aria-hidden="true"></i>
</button>
</div>
</form>

最佳答案

将您的搜索输入 float 到左侧,将您的提交按钮 float 到左侧。准备好。

input[type="search"],
button {
float: left;
}

关于html - 如何对齐搜索框旁边的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43079490/

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