Detecting mobile browsers on the web?

前端 未结 4 1342
慢半拍i
慢半拍i 2020-12-17 04:14

I\'m curious to know how to check for iPhone, iPad and other mobile browsers.(JavaScript or CSS)

Edit:

Not user agent string, please. That can be faked.

4条回答
  •  抹茶落季
    2020-12-17 04:50

    Use javascript to detect the HTTP User Agent - fancy term for name of the browser

提交回复
热议问题