Can the mobile page call the radio button of the mobile system?
習慣沉默2017-05-24 11:38:18
Yes, but the styles of android and ios are different.
It is best to use bootstrap or write the styles yourself.
阿神2017-05-24 11:38:18
Yes, just use select
<select>
<option value ="volvo">Volvo</option>
<option value ="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
过去多啦不再A梦2017-05-24 11:38:18
Writing the select tag directly is the system default style
But using trigger to trigger the select drop-down will cause problems
$('select').trigger('change') has no effect,
$('select').trigger('focus' ) has an effect on IOS and can trigger the drop-down box, but it does not work on Xiaomi.
In the end, I used positioning overlay directly and set the transparency of the select to 0;
phpcn_u15822017-05-24 11:38:18
<select> The native one is not ideal. Different system versions and browser versions will be very different. It is recommended to find a universal UI library instead.