1, iOS fixed in have input or textarea, the user input text, trigger the keyboard, the fixed container will be centered, rather than continue to hover Workaround: http://dwz.cn/CrwNz 2. Mobile-click Time 300ms delayWorkaround: Zepto.js or Baidu Touch.js or Fastclick.js3, Zepto touch problem: Swipe event in Xiaomi 1 and other low-end phones do not support basic Zepto4, Baidu Touch.js through the Touch.on to bind the event, but Click will encounter a point through the problem, that is, the parent trigger, the child triggerWorkaround: Download the latest version of touch address: http://touch.code.baidu.com/through the latest API Ev.originEvent.preventDefault (); before Wei Strong blog to write the point through the problem solution, use to touchend or Touchstar, can be, but there is no consideration of the user in a sliding screen when the finger just hit this button or just in this button finger left, Will trigger this button event, so this method is not very reasonable, often the click is not triggered by a touch let him trigger. 5, select dropdown box high problem, mobile phone display style is not the same, in the QQ browser pop-up option list height and select as high, in the HTC phone comes with the browser, height setting higher, you can not use option to select the required parameter value , and option defaults to show the first with an undertone6, in the ipod, iphone4 does not support through the TAP Trigger event audio JS, such as can not be triggered by the change of the SRC sound playback, with Click to solve. 7, Mobile audio in the Apple phone does not support music automatic playback, Apple has a security mechanism, users need to manually trigger to play music, which is now a lot of one screen sliding items to add a music icon is not simply to let the user to turn off the music, The speculative approach is to execute id.play () when the user hands trigger to the screen; JS8, the form will not say, such as the upload button set background diagram is invalid, are through the opacity for the zero simulation, but the interview students incredibly this is not reflected9, a lot of people use to fullpage.js to achieve large-format scrolling or a screen, but in the development of this plug-in if not set anchors to define the anchor point, the public number of published articles with link parameters have a # number, not add anchors, will appear roll to the second screen the user exits and goes in and jumps to the second page immediately. Workaround: Anchors: [' Page1 ', ' page2 ', ' page3 ', ' page4 '],10, recommend the use of swiper.js for development, a better Chinese API website is: http://www.swiper.com.cn/can solve a lot of mobile problems,11, the Apple system in the rolling long page always roll of very uncomfortable, not neat, rebound effect, plus a code:-webkit-overflow-scrolling:touch;12, video default controller hidden: video::-webkit-media-controls-enclosure {display:none!important;}, there is video on the mobile side can set the first frame of the screen, But some phones, such as HTC Default is a gray background, the solution is just to get a picture on top, click on the time when the picture disappears trigger play, Virgo just do so. 13, PNG image compression is a headache, the effect is not good, you can try this site: https://tinypng.com/Many new people know that JPG can adjust the quality, but do not know that PNG can be so compressed, the best effect of a site. Now there is a lower-quality WEBP format diagram, Google developed, Android phone test can be, Apple phone not. Do not use, you can understand. To view the smart Image: http://zhitu.tencent.com/14, can use the font icon on the font icon, IE6 can be compatible with the mobile side afraid of what? http://www.iconfont.cn/ 15, CSS3 animation effect can refer to animate.css write very good: http://daneden.github.io/animate.css/some low-end mobile phone more dazzling effect directly have before, no intermediate effect, mobile phone card out of Xiang, not supported. 16, understand viewport.js people, if you encounter some mobile phone scaling small, jquery will be put to viewport reference before, there is meta tag, need to pay attention to Width=device-width, GitHub address: https://github.com/anatoo/viewport.js with PX to cut the mobile end, PC-side how to cut your mobile side also follow the cut, but generally less use, viewport will appear some problems, the project is more urgent to use17, the mobile side with REM bar, do not use the old-fashioned em;18, Apple mobile phones are aware that the mobile phone number will disappear, add sentence code bar: <metacontent= "Telephone=no" name= "format-detection"/>ignore the mailbox recognition, add sentence code:<Meta content="Email=no" name="Format-detection" />19, good tired, first sleep another day to add .....
Mobile development Experience