办法做到内容适应移动 [英] Way to do content adaptation to mobile

查看:155
本文介绍了办法做到内容适应移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个网站,并希望把它移动准备好了,我看到人们在谈论非常非常技术,但一切看起来步行到网络的移动体验。

I creating a site and want turn it mobile ready, i see people talking about very very old technology but everything looks walking to an web mobile experience

我看到人们在谈论框架]到移动网络的发展,也是一个朋友告诉我
(WURFL)('http://wurfl.sourceforge.net/java/wall.php)来检测手机的功能和构建apropriate css文件做内容改编。

I see people talking about frameworks] to mobile web development, also a friend told me about (wurfl)('http://wurfl.sourceforge.net/java/wall.php) to detect mobile features and build an apropriate css file doing content adaptation.

我看到人们定义三个或四个CSS文件和使用媒体查询,以匹配屏幕大小与响应流体设计的设备,有人告诉我说,因为流量在网络和移动不同,你不能创建一个内容,但不能明白为什么!

I see people defining three or four css files and using media queries to match device by screen size with responsive fluid design, someone told me that you cant create one content because flow is different in web and in mobile but cant see why!

我需要知道,如果有一些CSS技巧,使一个页面(负载)在桌面plataform一些图像和(不加载)/(加载另一个)移动在逐步增强的方式,但有人在这里:

I need to know if there is some css trick to make one page (load) some images in desktop plataform and (dont load)/(load another) in mobile in a progressive enhancement way, but someone here:

<一个href=\"http://stackoverflow.com/questions/3185833/whats-the-most-efficient-way-to-hide-content-for-a-mobile-version-of-a-site\">What's最有效的方法来隐藏了网站的移动版本的内容?)

是说,用CSS招图像只能隐藏但服务器仍然请求。

is saying that with css trick images are only hidden but are still requested from the server.

是不是真需要一个移动网址版本相同的内容?

Is really necessary an mobile url version to same content ?

我要建立采用asp净MVC和<一个href=\"http://stackoverflow.com/questions/5278843/iis-asp-asp-net-how-to-structure-web-site-to-expose-mobile-version\">IIS/ASP/ASP.net:如何构建网站揭露手机版本建议使用不同的看法。

I will build using asp net mvc and IIS/ASP/ASP.net: How to structure web-site to expose mobile version recommends using different views.

这个必要吗?

林真的在移动开发一个newbee,需要的最好的方法了一些建议,以创建现有MVC网站的移动版本。

Im really a newbee in mobile development and need some advice on the best method to create a mobile version of an existing MVC website.

感谢

推荐答案

由于您使用MVC我会强烈建议使用jQuery Mobile的为好。我最近的工作使用MVC,剃须刀,FiftOne.Foundation和jQuery Mobile的一个项目。使用剃刀的意见,如果浏览器的用户代理报告说,它是一个移动设备,您可以通过更改检测所显示的视图。这样,您就不必更改网址,MVC只是呈现了不同的看法。

Since you're using MVC I would highly recommend using jquery mobile as well. I've recently worked on a project using MVC, Razor, FiftOne.Foundation and jquery mobile. Using razor views you can change the view being displayed by detecting if the browsers user agent reports that it's a mobile device. This way you don't have to change URLs MVC simply renders a different view.

我得找我发现教程,并发布一个链接

I'll have to look for the tutorial I found and post a link to it

编辑:
找到它:<一href=\"http://blog.stevensanderson.com/2010/12/17/using-51degreesmobi-foundation-for-accurate-mobile-browser-detection-on-aspnet-mvc-3/\"相对=nofollow>在ASP.NET使用51Degrees.Mobi基金会准确​​的移动浏览器检测MVC 3

这篇关于办法做到内容适应移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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