如何与他们保持对齐
我的HTML代码
<div id="headerlogo">
<a href="http://localhost/absolutevc/index.html">
<img id="logo" src="images\logo.jpg" height="69" width="250">
</a>
<input id="search" type="text" placeholder="Search Keywords" name="search" size="50px">
</div>
答案 0 :(得分:0)
使用display:flex
#headerlogo{
display:flex;
align-items: center;
}
这是我的小提琴代码:https://jsfiddle.net/nz0exkez/