Detect iPhone Browser

前端 未结 6 999
离开以前
离开以前 2020-12-05 08:59

is there a script to detect, if the visitor use iphone (whatever it\'s browser, may iphone Safari, iPhone for Opera or etc.)?

Then will shutdown some some of my Java

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 09:37

    Late, indirect answer to this question, but I found it useful.

    Instead of redirecting mobile users, consider using responsive CSS design to deliver desktop and mobile users the same content with two different styles. This helps avoid splitting and duplicating code. You can code responsive CSS from scratch, or use prepackaged frameworks like Twitter Bootstrap.

提交回复
热议问题