javascript - Can the mobile page call the radio button of the mobile system?
PHPz
PHPz 2017-05-24 11:36:18
0
5
904

Can the mobile page call the radio button of the mobile system?

PHPz
PHPz

学习是最好的投资!

reply all(5)
習慣沉默

Yes, but the styles of android and ios are different.
It is best to use bootstrap or write the styles yourself.

阿神

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梦

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;

漂亮男人

Using select directly will call the system’s built-in style.

phpcn_u1582

<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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template