ie8文字与select居中

2017-12-19 12:09:36来源:CSDN作者:wmx_boke人点击

分享

div样式

<span class="td_span">省:</span>

<select class=“select” name="province" id="province"></select>



css样式

.select{

width:100px;

height:30px;

font-family:"黑体";

font-size:16px;

color:#707070;

line-height:30px;

border:1px solid #bfbfbf;

border-radius:5px;

margin:15px auto;

padding-left:4%;

}

.td_span{
font-family:"黑体";
font-size:16px;
line-height:25px;
}

@media /0screen{.td_span{

line-height:20px;
margin-top:-16px;
vertical-align:middle;
display:inline-block;
}
}

微信扫一扫

第七城市微信公众平台