【发布时间】:2021-11-15 15:45:38
【问题描述】:
伙计们,我需要你的帮助 this is what i want in front-end to mobile device
<style>
select {
background-color: transparent;
border: none;
margin: 0;
width: 100%;
font-family: inherit;
font-size: 14;
cursor: inherit;
line-height: inherit;
outline: none;
text-align: center;
height: 90;
}
select option {
margin-top: 10;
}
</style>
<div class="select m-auto">
<select id="standard-select" name="bahasa" multiple>
<option value="id">Bahasa Indonesia</option>
<option value="en">Inggris</option>
<option value="viet">Vietnamese</option>
</select>
</div>
【问题讨论】:
-
在手机屏幕上看起来工作正常!尝试其他浏览器
-
使用“选择多个”是否有意义,因为用户只会选择一种语言?也许考虑使用单个选择或显示链接列表?
-
我怀疑您将不得不实现自己的 select 版本,因为(至少在我使用的 IOS 上)您无法模拟 select 上的点击事件,并且 multiple 和 size 不起作用。跨度>