[英]Handler to serve pages differently to mobile and computer browsers
In our company we create landing pages using HTML and javascript. 在我们公司中,我们使用HTML和javascript创建登录页面。 I want to create a handler that detects the whether the user is entering the site with a mobile device or a computer and display the different landing pages accordingly.
我想创建一个处理程序,以检测用户是否正在使用移动设备或计算机进入站点,并相应地显示不同的登录页面。 I don't need a complete explanation on how to do this but I would very much like a basic outline as to what I should be doing and what I should research to do this
我不需要有关如何执行此操作的完整说明,但我非常希望获得关于应该执行的操作以及应该进行哪些研究的基本概述
Thanks. 谢谢。
E Ë
You can deliver a response according to the browser type by using the following steps: 您可以通过以下步骤根据浏览器类型传递响应:
As an alternative you can detect the browser type using JavaScript and modify the page on the client side, or use CSS @media types . 或者,您可以使用JavaScript检测浏览器类型并在客户端上修改页面,或者使用CSS @media types 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.