我試圖讓一些搜索欄和提交按鈕排隊,但我不知道該怎麼做。我知道這可能很簡單,但我是HTML新手。 (哦,這只是瀏覽器的一部分,通常不會看起來那麼糟糕,因爲這的xD如何在html/css中搜索一組搜索欄?
.center-block{
margin-top: 220px;
text-align: center;
}
.searchboxes{
width: 500px;
opacity: 0.6;
font-weight: bold;
border-radius: 25px;
text-align: center;
margin: 0;
}
.searchboxes:hover{
opacity: 1;
font-weight: bold;
}
.clickboxes{
opacity: 0.6;
font-weight: bold;
font-family: Arial;
background-color: white;
border-radius: 25px;
margin-top: 480px;
text-align: center;
margin: 0;
}
.clickboxes:hover{
opacity: 1;
font-weight: bold;
}
<div class="col-md-6">
<img class="center-block" src="/assets/logo.png" alt="MsearchLogo" style="width:480px;height:270px;">
<form id="vb_yt_search-form" action="https://duckduckgo.com/" method="get" target="_blank">
<input name="q" type="text" maxlength="128" class="searchboxes" />
<input type="submit" value="DuckDuckGo" class="clickboxes" />
</form>
<br />
<form id="vb_yt_search-form" action="http://www.google.com/search" method="get" target="_blank">
<input name="q" type="text" maxlength="128" class="searchboxes" />
<input type="submit" value="Google" class="clickboxes" />
</form>
<br />
<form id="vb_yt_search-form" action="http://www.youtube.com/results" method="get" target="_blank">
<input id="vb_yt_search-term" name="search_query" type="text" maxlength="128" class="searchboxes" />
<input type="submit" value="Youtube" class="clickboxes" />
</a>
</form>
</div>
感謝您的回答 – Shayodonn10