{% else-1 %}
(20 ноя 2015, 14:08) (0/0) [0]
[code]include_once($_SERVER["DOCUMENT_ROOT"]."/system/mobile_detect.php"*;
$detect = new Mobile_Detect;
if($detect->isMobile()){
echo'<link rel="stylesheet" href="/style/css/wap.css" type="text/css" />';
}
elseif($detect->isTablet()){
echo'<link rel="stylesheet" href="/style/css/style2.css" type="text/css" />';
}
else
{
echo'<link rel="stylesheet" href="/style/css/web.css" type="text/css" />';
}
if($detect->isAndroidOS()){
echo'<link rel="stylesheet" href="/style/css/style.css" type="text/css" />';
}
if($detect->isiOS()){
echo'<link rel="stylesheet" href="/style/css/style2.css" type="text/css" />'; }[/code]
(20 ноя 2015, 14:06) (0/0) [0]
forsim, только у меня он cssки меняет при входе на сайт. ща покажу *
(20 ноя 2015, 14:02) (0/0) [0]
подключи mobile_detect и в месте вывода данного дива присобачь определение браузера * затем пишешь див под мобилу - мобильный. под Андроид,планшет,айос др див * либо под все что не мобила *
там все равно закрывать скобкой "}"
а в css
.еще имя дива, .fonstat { background: #f9f7fc repeat-x; border-bottom: 1px solid #E6E6FA; padding: 5px; }
ну или др. див напиши *
P.S. файл mobile_detect могу подарить *
и пример дать *
  • 1 из 1