<html>
<style>
#search-box{width:200px;height:100px;
box-sizing:border-box;padding:50px;line-height:100px;}
</style>
<body>
<form id="search-bar" class="hide" action="/action_page.php">
<input id="search-box" type="search" value="search">
<input id="search-submit" type="submit">
</form>
<button id="search-but" >click me</button>
</body>
</html>
搜索框本身就是inline-block应该是可以设置高度的,就算可能是浏览器问题使得inline-block高度不起效,你设置了display:block之后肯定是能设置高度的,我测试了一下你的代码,我这边(谷歌浏览器)设置的高度是能起效的,所以你看看是其他地方出了问题,换个浏览器看看,或者是样式覆盖的问题查查看。
