gpt4 book ai didi

html - Internet Explorer 的奇怪输入偏移问题

转载 作者:太空宇宙 更新时间:2023-11-04 14:19:03 25 4
gpt4 key购买 nike

我有一个奇怪的 IE 偏移问题(尤其是 IE9)并没有消失,一个 input 框在没有理由的情况下比另一个框有更高的偏移量(站得更低)。

Here is a zoomed-in version where you can see the offset .

我已经删除了所有其他元素,包括 CSS 样式,但我仍然无法摆脱这个偏移问题。

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head></head>
<body>
<form action="" method="post">
<input type="hidden" name="login" value="login" />
<input name="loginusername" style="height:16px;" type="text">
<input name="loginpassword" style="height:16px;" type="password">
</form>
</body>
</html>

Here is the first input and the box model from IE ,它显示了所有的 paddingmarginoffset 细节。

Here is the second input box model from IE .

最佳答案

这看起来很奇怪,但您可以尝试在输入的 CSS 中设置 vertical-align: top。至少在 IE8 中修复了它。

关于html - Internet Explorer 的奇怪输入偏移问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17139436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com