开发者社区> 问答> 正文

请问html标签如何水平

代码和效果如下,请问如何设置能让input和select在一个水平线上
css

.div-distance {
    margin-bottom:10px;
    margin-top:10px;
}

下面是html

<div class="div-distance">地       址 : 
<select id="province" style="width:100px"><option>省份</option></select>
<select id="city" style="width:120px"><option>地级市</option></select>
<select id="district" style="width:100px"><option>县/区</option></select>
 <input type="text" id="other" v-model="user_info.other" placeholder="详细地址" style='height:24px;'>
</div>

screenshot
谢谢

展开
收起
小旋风柴进 2016-03-13 08:33:07 2165 0
1 条回答
写回答
取消 提交回答
  • 设置height和line-height的值相等

    2019-07-17 19:01:36
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《零基础HTML入门教程》 立即下载
天猫 HTML5 互动技术实践 立即下载
天猫HTML5互动技术实践 立即下载