61,124
社区成员
发帖
与我相关
我的任务
分享
<div style="border:1px solid red;width:100%; background-color:#e7dbcd; display:table ; overflow:hidden; margin:0 auto; height: 300px; *position:relative;">
<div style="display:table-cell; vertical-align: middle; *position:absolute; top:50%;">
<div style="*position:relative; *top:-50%; text-align:center; width:220px; margin:0 auto;">
<input type="text" style="width:100px;"/>
<input type="text" style="width:100px;"/>
</div>
</div>
</div>
<div style="border:1px solid red;width:100%; background-color:#e7dbcd; display:table ; overflow:hidden; margin:0 auto; height: 300px; *position:relative;">
<div style="display:table-cell; vertical-align: middle; *position:absolute; top:50%;">
<div style="*position:relative; *top:-50%; text-align:center; width:100%;">
<input type="text" style="width:100px;"/>
<input type="text" style="width:100px;"/>
</div>
</div>
</div>
<div style="border:1px solid red;width:100%;height:300px;display:table;*position:relative; background-color:#e7dbcd;">
<div style="width:500px; display:table; overflow:hidden; margin:0 auto; height: 100%; *position:relative;">
<div style="display:table-cell; vertical-align: middle; *position:absolute; top:50%;">
<div style="*position:relative; *top:-50%;">
<div style="width:220px; margin:0 auto;">
<input type="text" style="width:100px;"/>
<input type="text" style="width:100px;"/>
</div>
</div>
</div>
</div>
</div>
<!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>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div style="border:1px solid red;width:100%;height:300px;display:table;*position:relative;" id="main">
<div id="nav" style="display:table-cell;width:100%;background-color:#e7dbcd;top:50%;vertical-align:middle;*position:relative;">
<div style="*position:absolute;top:50%;_left:44%;text-align:center;">
<input type="text"/>
<input type="text"/>
</div>
</div>
</div>
</body>
</html>