给html三端识别访问指定的html

本人没学过html请给我打包一下 啥都不会
打包一下就好了
例如 打开我的网址
安卓访问的是1.html
ios访问的是2.html
pc访问的是3.html
谢谢了!请打包文件给我 不要发代码哈

你题目的解答代码如下:

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title> 页面名称 </title>
</head>
<body>
<script type="text/javascript">

  //判断设备
    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
        location.href = '2.html';
    } else if (/(Android)/i.test(navigator.userAgent)) {
      //判断Android
        location.href = '1.html';
   } else {
      //pc
        location.href = '3.html';
    }

</script>
</body>
</html>

打包文件下载:

链接:https://pan.baidu.com/s/1h3c0OhdPxZzP7rPUIQIsPQ?pwd=ie44
提取码:ie44

如有帮助,请点击我的回答下方的【采纳该答案】按钮帮忙采纳下,谢谢!

img

您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632