Detect phone/tablet/web client using javascript

后端 未结 4 1823
闹比i
闹比i 2020-12-17 01:08

I am trying to detect if the end user is on a phone, a tablet or a pc

I have been Googling for a while, apparently there are no easy solution.

Well I guess I

4条回答
  •  一生所求
    2020-12-17 01:27

    I'd recommend looking into media queries and the tag.

    Some excellent articles on the thought processes behind responsive design.

    http://www.html5rocks.com/en/mobile/mobifying/

    http://www.magazine.org/timecom-gm-craig-ettinger-bringing-responsive-web-design-iconic-brand

    The question remains, what are you trying to accomplish?

提交回复
热议问题