Mobile pages use percentages or media queries to set the width of the page in most cases This will achieve the effect of the response
Here are some explanations.
1.-webkit-tap-highlight-color:rgba (0,0,0,0); can also be written-webkit-tap-highlight-color:transparent; When you remove a click highlight display you can also change the parameters inside to achieve the desired click to display the highlight effect
2.-webkit-touch-callout:none; The system menu does not fire when long pressing the page
3.-webkit-user-select:none; Long press cannot select text This is useful generally if the body does not add this property to the mobile phone page when we long press a paragraph of text will appear to select this text pop up "copy, select All" and other options but in WebApp development this is very unfriendly, especially in the development of WebApp In order to achieve the same true effect as the native must be added
4.html,body{width:100%; height:100%; This is the entire document after the initialization of the wide height of the child is set according to this data
5.main and child height are set to auto you can also not set, but if your page is allowed to scroll, it is best to set
6. We use the menu fixed to the bottom of the page you can also position him on the top or anywhere you want to locate
7.menu inside Tab We're using a percent allocation because there's border-right so we can't exactly allocate how much of this should be more accurate method of averaging allocation to be researched (elastic box model)
Mobile Side FAQs