PhoneGap & Android - How to use the new select list style

后端 未结 4 961
失恋的感觉
失恋的感觉 2021-01-14 13:37

I developed an mobile app for Android using PhoneGap. I also published it for browsers.

On my phone, when I view the app in Chrome, I get the following select menu s

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-14 14:15

    There is no way to style that using css only. That is not a html component, it's not part of the DOM. Both the selectors you see are added on top of your browser by native methods.

    Essentially, if you want to change the default behavior of the select you must build your own select dialog and trigger it when the user clicks on a select.

    Check this similar question.

提交回复
热议问题