现在的位置: 首页 > 综合 > 正文

div + css div中的内容垂直居中

2013年10月11日 ⁄ 综合 ⁄ 共 352字 ⁄ 字号 评论关闭
#ds_topic_btn {
	position: relative;
	top: 180px;
	left: 10px;
	height: 83px;
	line-height: 83px;
}
#ds_topic_btn img{
	vertical-align: middle;
	margin-right: 5px; 
}

<div id="ds_topic_btn">
				<img src="img/recharge_btn.png">
				<img id="ds_reduce" src="img/reduce_btn_disable.png">
				<input type="text" style="width: 80px;">
				<img id="ds_add" src="img/add_btn.png">
				<img src="img/answer_btn.png">
			</div>

抱歉!评论已关闭.