0

私の問題は、入力ボックスの位置のすぐ上にある画像の位置に関連しています。入力ボックスと同じ行にしたい

<div style="display: table; margin: 0 auto; margin-top: 10px">
    <input id="searchip" type="text" maxlength="30" autofocus="" size="50" name="textnew" style="height: 20px">
    <img src="images/savedomain.png">
</div>
4

1 に答える 1

1

必要なのは

img {
    vertical-align: top;
}

デモ

于 2013-07-24T11:14:38.750 に答える