//第一种方式,博客侧边栏公告

app页面用css 的direction 属性解决select 下拉框右对齐

direction 属性规定文本的方向 / 书写方向。

select标签

<div class="mui-input-row mir">
   <label style="margin-left: 5px;">部门</label>
   <select dir="rtl" id="dept" style="width:50%; height: 30px;">
   </select>
</div>

select的样式

#dept{
    direction: rtl;
}

#dept option{
    direction: ltr;
}

 

posted @ 2018-09-07 12:00  zhoupan  阅读(905)  评论(0编辑  收藏  举报