<!DOCTYPE html>
<html>
<head>
    <title>Redirect</title>
    <script type="text/javascript">
        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
            window.location.href = "index1.php";
        } else {
            window.location.href = "index2.php";
        }
    </script>
</head>
<body>
</body>
</html>
手机访问跳转到 index1.php,电脑访问跳转到 index2.php - HTML 代码示例

原文地址: http://www.cveoy.top/t/topic/qpit 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录