桌面版如何?设备显示的手机版本。 [英] How is desktop version & phone version displayed by device.

查看:75
本文介绍了桌面版如何?设备显示的手机版本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道这对我的问题是否应该是正确的句子:)

无论如何,假设我有一个网站&我希望用户从桌面访问我的网站,有桌面版显示,用户从手机访问我的网站,有手机版本显示,如Facebook,Twitter等..

是否涉及设计两个不同的网站对于同一站点或显示过程由我们的设备自动完成。如果它的两个用于相同的网站,那么我将要发布的内容呢?我是否必须管理两个网站或在1中发布将在另一个网站上显示。



我尝试过:



==================================

Don't know if that should be the right sentence for my question :)
Anyway, assuming I have a website & I want a users visit my website from desktop to have a desktop version display and users visiting my site from phone to have a phone version display like Facebook, twitter etc..
Does it involved designing two different website for same site or the process of displaying is done automatically by our device. Also if its two for same site then what about the things that I'll be posting? Will I have to administrate two website or posting in 1 will display in another.

What I have tried:

==================================

推荐答案

这有两种主要方式...一种方法是拥有两个版本的站点,并根据用户将用户引导到正确的用户(通过查看用户确定)剂)。另一种方法是使用适应屏幕尺寸的css,这也称为响应式设计。拥有多个站点的优势意味着您可以为移动设备提供不同的流量或页面,因此您可以拥有该站点的减少版本。响应式设计的优势在于您只需要一个站点,它可以很好地适应桌面,移动设备,平板电脑等,它更具未来性和强大性,并且只需要一个站点。



响应式设计本身就是一个很大的话题,而且要实现起来相当具有挑战性。如果你谷歌你会发现很多关于它的教程和文章。
There are two main ways of doing this...one is to have two versions of your site and direct the user to the correct one based on their device (determined by looking at the user agent). The other way is to use css that adapts to the screen size, this is also known as "responsive design". The advantages of having multiple sites means you can have different flows or pages for mobile, so you can have a "cut down" version of the site. The advantage of responsive design is you only need one site and it adapts well be it desktop, mobile, tablet etc, it is more future proof and robust, and only needs one site.

Responsive design is a huge topic on its own and fairly challenging to achieve. If you google you'll find lots of tutorials and articles on it.


这篇关于桌面版如何?设备显示的手机版本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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