代码比较简单,判断客户端浏览器信息是否包含Mobile。


<%
if instr(request.servervariables("http_user_agent"),"Mobile")>0 then
%>
电脑端显示内容
<%else%>
手机端显示内容(可以加入跳转代码)
<%end if%>