61,112
社区成员
发帖
与我相关
我的任务
分享
<!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>
<title></title>
<style type="text/css">
* { margin:0; padding:0;}
li { list-style:none;}
.wrap { width:500px; height:60px; margin:0 auto; border:1px solid blue; overflow:hidden; position:relative; display:table-cell; vertical-align:middle;}
input { position:static; +position:relative; top:50%; *top:30%; width:100px;}
</style>
</head>
<body>
<div class="wrap">
<ul>
<li><input type="text" /></li>
</ul>
</div>
</body>
</html>