【发布时间】:2013-06-12 22:18:51
【问题描述】:
我有一个奇怪的 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,显示所有padding、margin 和offset 详细信息。
【问题讨论】:
标签: html css internet-explorer