mobile website mobile website [closed]

浪尽此生 提交于 2019-12-10 12:27:13

问题


website tailored for mobile devices.


回答1:


At first, you should check this link. This link explains you, at first, how to redirect your Website to a mobile device. With that, you can create a full interface redesigned with your mobile resolutions, and it will work for you.

If you don't want to redirect it, you can also modify your code by modifying your CSS. Sorry to tell you this, but both solutions need CSS changes.

First one is a redirection of your site to the mobile one, created by yourself, and with the apropiate CSS. For example. You have:

http://www.yourdomain.com

The idea of this method is to create a subfolder, lets say, like this:

http://www.yourdomain.com/m

It uses to be a folder with an m, for identyfing mobile. There you copy your files and adapt your CSS to mobile.

The second method is the same, but on your CSS you should add properties for your difrerent resolutions using the media property:

 @media (min-width: 480px) and (max-width: 950px) as an example...

See here.



来源:https://stackoverflow.com/questions/13874386/mobile-website-mobile-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!