我刚刚制作了我的第一个 jQuery 移动网站。
我想让使用手机查看我的“完整网站”的人自动转移到“移动网站”。如果需要,还可以单击链接查看完整站点。
我不知道从哪里开始。有一些我可以使用的 JavaScript 吗?
如果您想查看这些网站的外观,请查看完整网站:http://www.solera-restaurant.com http://www.solera-restaurant.com并且移动网站仍在我的测试服务器上:http://graves-incorporated.com/test_sites/solera_mobile/ http://graves-incorporated.com/test_sites/solera_mobile/
<script type="text/javascript">
if (screen.width <= 720) {
window.location = "mobile/index.php";
}
</script>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)