Recently in the Mobile Phone Web page is how to do, after learning to share with you hope that in the future, we will not be so laborious study.
You think that's me?? Ha ha
Well, the nonsense is not much to say, the matter is important .....
We make a mobile website, first of all to clear a purpose, you are to do a computer station to adapt to the mobile phone, or purely mobile station, like app or mobile browsing Web page. It's about the same!
What I am going to introduce to you today is hahaha, the latter.
You can choose frame or no frame ....
First in your header file declaration to declare these meta ....
- <meta name= "viewport" content= "Width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0 "/>
- <meta name= "apple-mobile-web-app-capable" content= "yes"/>
- <meta name= "format-detection" content= "Telephone=no"/>
The first one is to set the screen size of the phone, the second is to set the iphone page full screen, the third is to cancel the number is recognized as the phone number! Of course, there are many other, you can Google, my project is usually only used in the first two. The careful classmate may find that the bootstrap framework's header file declaration is much like the first one.
How to do a mobile page