建立移动友好网站的最佳方法是什么? [英] What's the best way to make a mobile friendly site?

查看:69
本文介绍了建立移动友好网站的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以完全不依赖技术的术语来说,建立移动友好网站的最佳方法是什么?也就是说,我要创建一个可以在常规计算机上运行但还具有页面移动版本的网站.我应该重写每页吗?这些页面可能具有不同的功能,所以我应该重写后端代码吗?它应该是具有相同数据库的有效不同站点吗?

Speaking entirely in technology-free terms, what is the best way to make a mobile friendly site? That is, I want to make a site that will work on a regular computer but also have mobile versions of the pages. Should I rewrite each page? The pages will probably have different functionality, so should I rewrite the backend code? Should it be an effectively different site with the same database?

推荐答案

大约一年前,我在操作站点上添加了移动表示层.基于该站点的体系结构(希望这对您而言不是太依赖技术),我添加了一组新的JSP以适应移动浏览器(注:请参见 http://wurfl.sourceforge.net/,这是一种构建独立于浏览器类型的移动页的好方法.另外,由于大多数移动浏览器的功能有限,某些后端功能也已更改.因此,简而言之,整合并没有人们期望的那么痛苦.

I added a mobile presentation layer to an operational site about a year ago. Based on the architecture of the site (hopefully this isn't too technology dependent for you) I added a new set of JSPs to accommodate mobile browsers (sidenote: see http://wurfl.sourceforge.net/ for a great way to build mobile pages independent of browser type). Additionally some of the back-end functionality was changed due to the limited functionality of most mobile browsers. So, in short, the integration wasn't as painful as one would expect.

祝你好运!

这篇关于建立移动友好网站的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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