在桌面版和移动版网站之间切换的策略 [英] Strategies for switching between desktop and mobile version of the website

查看:121
本文介绍了在桌面版和移动版网站之间切换的策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在研究了几个小时,我想找到一个聪明的解决方案,使用户有机会切换到网站当前移动版本的桌面版本.

researching a couple of hours now, i want to find a clever solution for giving a user the opportunity to switch to the desktop version of the current mobile version of a website.

从技术上讲,我有一个专用的移动网站或一个带有媒体查询的网站,使设计负责.

Technically that menas that i either have a dedicated mobile site or a single site with media queries making the design responsible.

对我来说,具有响应式设计的单个网站的最后一个选择引起了极大的兴趣.

For me the last option of a single website with responsive design is of great interest.

1.)您能想到什么方式来由用户操纵设计?

1.) What ways can you think of to manipulate design by the user?

2.)它应该在服务器端还是客户端?优点/缺点?

2.) Should it be on the server side or client side? Pros/cons?

3.)您对可能的解决方案有什么样的经验?

3.) What kind of experience do you have with possible solutions?

我知道那里已经有一些问题了……

I'm aware that there are some questions already out there...

> https://stackoverflow.com/questions/11146768/switching-between-mobile -and-desktop-site

从移动版本切换到完整网站(桌面版本)

非常感谢!

推荐答案

最简单的CSS修复是: 例如:

Easiest CSS fix would be: Eg:

#wrap {
 width: 1020px;
}

@media only screen and (max-width: 900px) { /* Screen which has a maximum width of 900px */

  #wrap {
    width: 500px;
  } 

}

这篇关于在桌面版和移动版网站之间切换的策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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