1

以下は私の望ましい結果です。Chrome、IE、および FF で正常に動作します。

完全

これは、Opera を使用している場合の結果です。

壊れた

デモサイト: http://www.unforgivengamers.com

助けてください?

4

2 に答える 2

2

I was able to fix the difference by assiginig height to the input.

See this example, there is no difference in height in any browser:

http://jsbin.com/ijuzas/1/edit

If you assign the same height to the select and input element it should be equal.

Using operas inspect element i changed the height to 14px and it looked the same.

#menu form input[type="text"] {
height:14px;
}

However, it would be best to set the same height on both select and input and not leave it unset.

于 2013-01-05T12:21:07.240 に答える
1

私は醜い css ハックを使用して、選択のパディングがわずかに異なるオペラのみをターゲットにすることになりました。

x:-o-prefocus, #menu select {
 padding: 5px 2px 5px 0;
}
于 2013-01-05T13:13:49.763 に答える