在ie8下的两个并列button按钮会出现错位情况。测试代码如此下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>luoxue</title>
</head>
<body>
<input type="button" value="button1"/>
<input type="button" value="button2"/>
<hr/>
<span>
<input type="button" value="button3"/>
<input type="button" value="button4"/>
</span>
</body>
</html>
button1与button2是没加span标签的实例,
button3与button4是加span标签的实例。
在ie8下打开该文件,如图所示: