Div实现input垂直居中
Div实现input垂直居中 兼容ie7,ie8,ff?
代码:<style type="text/css">
body{font-size:12px;}
.lanrentuku1{
border: 1px solid #CCC;
width:1120px;
height:40px;
margin:auto;
display: table;
*position: relative;
overflow: hidden;
}
.lanrentuku2 {
vertical-align: middle;
display: table-cell;
*position: absolute;
*top: 50%;
}
.lanrentuku3 {
*position: relative;
*top: -50%;
float:right;
padding-right:10px;
}
</style>
<body><br /><br /><br />
<div name="formsearch">
<div type="text" size=”30”>
</div></form>
</div></div>
</body>