简体   繁体   中英

Check if select element opens within the page

I need to know if the < select > element opens within the page or in a external box.
Take this image as example: https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/Art/custom_select_implement.jpg

Is it possible to know what will happen when the user clicks or touchs the select element?
If it will behave like image A or image B.

thanks,
Joe

I believe this answer will solve your problem. It recommends using Media queries through css to check the environment and act accordingly.

Desktop friendly multiple dropdownlist while keeping smartphones default style

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM