移动端内容适配方式 [英] Way to do content adaptation to mobile

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

问题描述

我创建了一个网站并希望将其变为移动设备,我看到人们谈论非常非常技术,但一切看起来都在走向网络移动体验

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

我看到有人在谈论框架] 到移动 Web 开发,还有一个朋友告诉我(wurfl)('http://wurfl.sourceforge.net/java/wall.php) 检测移动功能并构建合适的 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 技巧可以以渐进增强的方式在桌面平台中制作一个页面(加载)一些图像,并在移动设备中(不加载)/(加载另一个),但这里有人:

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:

为网站的移动版本隐藏内容的最有效方法是什么?)

是说使用 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 net mvc 和 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.

这有必要吗?

我真的是移动开发的新手,需要一些关于创建现有 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、Razor、FiftOne.Foundation 和 jquery mobile 的项目上工作.使用 razor 视图,您可以通过检测浏览器用户代理是否报告它是移动设备来更改正在显示的视图.这样您就不必更改 URL,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

找到它:使用 51Degrees.Mobi Foundation 在 ASP.NET MVC 3 上准确检测移动浏览器

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

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