如何创建一个移动友好的网站[基础设施] [英] How to create a mobile friendly website [infrastructure]

查看:141
本文介绍了如何创建一个移动友好的网站[基础设施]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想创建一个相对较小的网站的移动友好版本,最好有一个子域,重定向到一个完全新的url与单独的标记和样式或更好地检测用户代理的代码并且以编程方式改变到不同的移动友好的样式表,或者是他们更好的基于基础设施的解决方案,我可以俯瞰..

if i wanted to create a mobile friendly version of a relatively small website would it be better to have a sub domain that redirects to a completely new url with separate markup and styling or would it be better to detect the user agent in code and programmatically change to a different mobile friendly stylesheet, or is their a better infrastructure based solution i am overlooking..

谢谢。

推荐答案

如果SEO不是真正的问题,使用不同的样式表与相同的HTML更容易,在维护方面。

If SEO isn't really a concern, Using different stylesheets with the same HTML is much easier, in terms of maintenance.

这篇关于如何创建一个移动友好的网站[基础设施]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆