Mobile Web Development Tips (follow-up)

Source: Internet
Author: User
<span id="Label3"></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Yesterday's "mobile Web Development skills" In this article, we have a good response, because these problems in the daily writing of mobile pages, often encountered. So the article is still super practical, so we continue today to share the mobile Web development skills, We hope to Help.</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">PS: do not let the small partner write the mobile end of the first time like the following the face of the force haha ...</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">650) this.width=650; "class=" aligncenter size-full wp-image-946 "src=" http://www.aliyue.net/wp-content/uploads/2016 /05/web03.gif "alt=" web03 "width=" "height=" 176 "style=" height:auto;vertical-align:middle;border:0px;text-align : center;margin:0px auto; "/></p></p><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);"><strong>first, Enable WebApp full screen mode (IOS)</strong></span></span><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">When the site is added to the home screen and then clicked to start, you can hide the address bar (jumping from the browser or entering the link does not have this Effect)</p></p><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><meta name= "apple-mobile-web-app-capable" content= "yes"/><meta name= "apple-touch-fullscreen" content= "yes "/><!--more--></pre></pre><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);"> <strong><strong>second,</strong></strong> <strong><strong>Add to the main screen after the app icon</strong></strong> </span></span><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">There are two slightly different ways to specify the path to the icon after the Web app is added to the home screen:</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><!– <strong>Design Original</strong> –></p></p><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><link href= "short_cut_114x114.png" rel= "apple-touch-icon-precomposed" ></pre></pre><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><!–<strong> Add a highlight effect</strong> –></p></p><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><link href= "short_cut_114x114.png" rel= "apple-touch-icon" ></pre></pre><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">* Apple-touch-icon: IOS6 and below will automatically add a layer of highlight to the icon (IOS7 has begun to use a flat design Style) * Apple-touch-icon-precomposed: Use the "design original icon"</p></p><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);"><strong>third, priority to use the latest version of IE and Chrome</strong></span></span><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><meta http-equiv= "x-ua-compatible" content= "ie=edge,chrome=1"/></pre></pre><strong><strong><span style="color:rgb(51,153,102);">Iv. Mobile Touch event (differentiate between WebKit and Winphone)</span></strong></strong><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Touch events that trigger when a user's finger is placed on a mobile device that slides on the screen</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><strong>The following support WebKit</strong></p></p> <ul style="list-style-type:none;" class="list-paddingleft-2"> <ul style="list-style-type:none;" class="list-paddingleft-2"> <li><p>Touchstart--occurs when the finger touches the Screen. No matter how many fingers are present</p></li> <li><p>Touchmove--a continuous trigger when the finger is sliding on the Screen. Usually we slide the page again, and the Preventdefault () that invokes the event can prevent the default from happening: prevent page scrolling</p></li> <li><p>Touchend--triggered when the finger leaves the screen</p></li> <li><p>The touchcancel--system stops tracking when the touch is Triggered. For example, in the process of touching a sudden page alert () a prompt box, which will trigger the event, this event is less used</p></li> </ul> </ul><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><strong>The following support Winphone 8</strong></p></p> <ul style="list-style-type:none;" class="list-paddingleft-2"> <ul style="list-style-type:none;" class="list-paddingleft-2"> <li><p>Mspointerdown--occurs when the finger touches the Screen. No matter how many fingers are present</p></li> <li><p>Mspointermove--a continuous trigger when the finger is sliding on the Screen. Usually we slide the screen again, will call the CSS html{-ms-touch-action:none;} You can prevent the default from happening: prevent page scrolling</p></li> <li><p>Mspointerup--triggered when the finger leaves the screen</p></li> </ul> </ul><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);"><strong>fifth, The Mobile click Screen generates 200-300 MS Delay response</strong></span></span><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Web pages on mobile devices are 300ms delayed, and playing can cause button click Delay or even click Invalidation.</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">The following are historical reasons:</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">In 2007, Apple released the first iphone on the iOS system with safari in order to apply to the pc-side of the large screen can be better displayed on the mobile phone, using double-click Zoom (double tap to Zoom) scheme, such as you on the phone with a browser to open a Web page on a PC , you may see the page content although can fill the entire screen, but the font, pictures are very underestimated, at this time you can quickly double-click on a part of the screen, you can see the part of the enlarged content, double-click to return to the original State.</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Double-click Zoom refers to a quick click on the screen with your finger two times, and IOS comes with a Safari browser that zooms the page to its original scale.</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">The reason for this is how the browser needs to determine the quick click, when the user clicks an element on the screen, such as a jump link <a href= "#" ></a>, where the browser captures the click first, however, the browser can not determine whether the user is simply to click on the link or double-click on the area to zoom, so, after capturing the first click, the browser will hold a period of time t, if the user does not make the next click in the t time interval, then the browser will do a click Jump link processing, If the user makes a second click in the t-time, the browser disables the jump and instead zooms in on that portion of the Area's page.</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">So how much does this time interval T have? Under iOS safari, it's about 300 milliseconds. This is the origin of the Delay. The consequences of the user simply click on the page, the page takes a while to respond, give the user a sense of slow experience, for the Web developer, the page JS capture Click event callback function processing, requires 300ms before it takes effect, also indirectly lead to affect the processing of other business Logic.</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><strong>Solution:</strong></p></p> <ul style="list-style-type:none;" class="list-paddingleft-2"> <ul style="list-style-type:none;" class="list-paddingleft-2"> <li><p>Fastclick can resolve 300ms latency of click events on the phone</p></li> <li><p>Zepto's Touch module, The Tap event is also designed to address latency issues in the Click</p></li> </ul> </ul><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><strong>Response Order of touch events</strong></p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">1, Ontouchstart</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">2, Ontouchmove</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">3, Ontouchend</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">4. onclick</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Solve problems with 300ms latency, or you can speed up response to events by binding Ontouchstart events</p></p><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);"><strong>How to remove the translucent gray matte that is generated when elements in the iOS system are touched</strong></span></span><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">iOS users click on a link, a translucent gray matte appears, If you want to disable, you can set the alpha value Of-webkit-tap-highlight-color to 0, that is, the last digit of the property value is set to 0 to remove the translucent gray matte</p></p><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);">A,button,input,textarea{-webkit-tap-highlight-color:rgba (0,0,0,0;)}</pre></pre><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);">seventh, Some of the Android system elements are clicked to create a border how to remove</span></span><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Android users click on a link, there will be a border or translucent gray matte, different manufacturers defined the amount of the effect is not the same, you can set the alpha value Of-webkit-tap-highlight-color 0 To remove some of the Machine's own effect</p></p><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);">A,button,input,textarea{-webkit-tap-highlight-color:rgba (0,0,0,0;)-webkit-user-modify: read-write-plaintext-only;}</pre></pre><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><span style="color:rgb(255,0,0);">-webkit-user-modify has a side effect, is that the input method can no longer enter multiple characters</span></p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">In addition, some models can not be removed, such as Millet 2</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">For the button class there is another way, do not use a or input tags, directly with the DIV tag</p></p><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);"> <strong><strong>eighth,</strong></strong> <strong><strong>mobile phone photos and upload pictures</strong></strong> </span></span> <ul style="list-style-type:none;" class="list-paddingleft-2"> <ul style="list-style-type:none;" class="list-paddingleft-2"> <li><p><input type= "file" > 's Accept Property</p></li> <li><p><!– Select Photo –></p></li> <li><p><input type=file accept= "image/*" ></p></li> <li><p><!– Select Video –></p></li> <li><p><input type=file accept= "video/*" ></p></li> </ul> </ul><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><strong>Usage summary:</strong></p></p> <ul style="list-style-type:none;" class="list-paddingleft-2"> <ul style="list-style-type:none;" class="list-paddingleft-2"> <li><p>iOS has photos, videos, and local image selection features</p></li> <li><p>Some Android only choose local picture function</p></li> <li><p>Winphone not supported</p></li> <li><p>The input control looks ugly by default</p></li> </ul> </ul><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);">nineth, Eliminate transition splash screen</span></span><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);">. css{/* sets how embedded elements are rendered in 3D space: reserved 3d*/-webkit-transform-style:preserve-3d; /* (sets whether the back side of the element being converted is visible when facing the User: hidden) */-webkit-backface-visibility:hidden;}</pre></pre><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><strong>Turn on hardware acceleration</strong></p></p> <ul style="list-style-type:none;" class="list-paddingleft-2"> <ul style="list-style-type:none;" class="list-paddingleft-2"> <li><p>Resolve page Flash White</p></li> <li><p>Keep your animations flowing</p></li> </ul> </ul><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);">. css {-webkit-transform:translate3d (0, 0, 0);    -moz-transform:translate3d (0, 0, 0);    -ms-transform:translate3d (0, 0, 0); Transform:translate3d (0, 0, 0);}</pre></pre><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Several elements of designing high-performance CSS3 animations</p></p> <ul style="list-style-type:none;" class="list-paddingleft-2"> <ul style="list-style-type:none;" class="list-paddingleft-2"> <li><p>Use synthetic attributes transform and opacity as much as possible to design CSS3 animations,</p></li> <li><p>Use position left and top to locate</p></li> </ul> </ul><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Using Translate3d to turn on GPU acceleration</p></p><span style="color:rgb(51,153,102);"><span style="color:rgb(51,153,102);">tenth,<strong><strong>audio elements and video elements cannot be played automatically in iOS and Andriod</strong></strong> </span></span><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Solution: Touch screen is broadcast</p></p><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);"><pre style="padding:10px 20px;font-family:‘courier new‘;font-size:12px;color:rgb(248,248,212);margin-top:20px;margin-bottom:20px;line-height:20px;white-space:pre-wrap;border:none;list-style:none;background-color:rgb(74,74,74);">$ (' HTML '). one (' touchstart ', function () {audio.play ()})</pre></pre><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;">Today we will share these 10, we have the need for their own collection oh!</p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><strong>========================================================</strong></p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><span style="color:rgb(255,153,204);"><strong><span style="font-size:24pt;">Small <span style="color:rgb(153,204,0);">month</span> <span style="color:rgb(0,204,255);">bo</span> <span style="color:rgb(255,102,0);">guest</span></span></strong></span></p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><strong><span style="color:rgb(51,153,102);">Http://www.aliyue.net</span></strong></p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><span style="font-size:36pt;"><strong><span style="color:rgb(255,153,204);">W</span> <span style="color:rgb(153,204,0);">E</span> <span style="color:rgb(0,204,255);">B</span></strong></span></p></p><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><p style="margin-top:10px;margin-bottom:10px;list-style:none;text-indent:2em;color:rgb(85,85,85);font-family:arial, ‘Microsoft Yahei‘, ‘Helvetica Neue‘, Helvetica, Arial, sans-serif;font-size:14px;line-height:25px;white-space:normal;text-align:center;"><strong>========================================================</strong></p></p><p><p><br></p></p><p><p>This article is from the "xiao Yue blog" blog, Please be sure to keep this source http://aliyue.blog.51cto.com/11564403/1782576</p></p><p><p>Mobile Web Development Tips (follow-up)</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.