1 回答

TA貢獻1842條經驗 獲得超13個贊
在你的另一個問題中我已經解決了這個問題,所以如果你的桌面菜單要增加并且你仍然希望它在一起,只需更改它,添加flex-wrap: nowrap;桌面 CSS 并調整寬度,我在下面給了你 2 個類,使用它們在 dektop css 上,而不是在 Media Query 中,只需替換這兩個類的代碼,它就不會中斷,
.header-search-container {
width: 100%;
max-width: 470px;
min-width: auto;
height: 40px;
border-radius: 20px;
margin-left: 60px;
flex-wrap: nowrap;
}
.header-search-form {
max-width: 430px;
height: 40px;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
border-left: 0px none;
background-color: #f4f7f8;
font-family: Source Sans Pro;
text-align: left;
color: #cecece;
width: 100%;
}
是的,不要忘記也贊成最后的答案。如果需要其他任何東西或這不起作用,請隨時詢問 Happy Coding。
添加回答
舉報