發表文章

目前顯示的是有「test」標籤的文章

[PHP] to Detect if browser is mobile

Use PHP to detect if browser is mobile Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. Download from the following link. https://github.com/serbanghita/Mobile-Detect/tags How to use in php code require_once '../Mobile_Detect.php'; $detect = new Mobile_Detect; if($detect->isMobile() ){     // is mobile }else if($detect->isTablet()){     // is tablet }else{     // is computer } Source from: https://github.com/serbanghita/Mobile-Detect

Generate screenshots at actual device sizes on iOS, Android, OS X & Windows

圖片
Generate screenshots at actual device sizes on iOS, Android, OS X & Windows You can test your website with different size with different mobile device And test on iOS, Android, OS X & Windows. Source from:  http://www.browserstack.com/responsive