1
在我的下面的代碼中,爲什麼div上方顯示第二個文本框?在IE7中相對位置絕對位置頂部顯示?
<!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">
<head></head>
<body>
<div style="position:relative;width: 170px;height: 50px;">
<input type="text" />
<div style="position: absolute;z-index: 999999;border: 1px solid;background:#D1C9AF;left:0;top:30px;">
demo text div1 demo text div1 demo text div1 demo text div1 demo text div1 demo text div1
demo text div1 demo text div1 demo text div1 demo text div1 demo text div1 demo text div1
demo text div1 demo text div1 demo text div1 demo text div1 demo text div1 demo text div1
</div>
</div>
<div style="position:relative;width: 170px;height: 50px;">
<input type="text" />
</div>
</body>
</html>