Html Mobile Web Development Details Processing

Source: Internet
Author: User

1.-webkit-tap-highlight-color:rgba (255,255,255,0) can simultaneously block the shadow that appears when clicking on an element under iOS and Android.
Note: The transparent property value is not valid under Android.


2,-webkit-appearance:none can simultaneously shield the input box strange inner shadow, solves The button style can not be modified under iOS, the test also found a small problem is that after adding the above properties, iOS default is still with rounded corners, but you can use Border-radius Property modification.


3,-webkit-transform:translate3d (0, 0, 0) can make the animation more fluent under iOS (this property calls the hardware acceleration mode, without using the JS engine, direct browser kernel rendering), but not in the Android under the chaos, Many unseen bugs are due to this.


4,-webkit-background-size can do high-definition icons, but some of the lower version of Android can only recognize Background-size, so it is necessary to write two.


5, ios5+ can be Scrollto (0,0) to automatically hide the browser address bar.


6. CSS3 animation will affect your autofocus, so auto-focus should be done before the animation is executed, or discarded directly.

7,//The style used when vertical screen

{. css{}}//style used when traversing the screen
{. css{}}

8, audio and video can not automatically play the problem, the built-in browser has resolved this issue:
$ (' HTML '). One (' Touchstart ', function () {
    Audio.play ()})//must have interactive action to trigger
9, if involves more outside the domain link, the DNS prefetching can help you do the DNS pre-parsing. 10, if you want your site to spread more in SNS, then open Graph protocol will be more suitable for you.
11, when using Iscroll time, can not use: focus{outline:0} pseudo-class, otherwise sliding card.
12, Video full-screen playback
X-webkit-airplay= "true" webkit-playsinline= "true" preload= "Auto" autoplay src= "/http" >>
13, solve the splash screen,-webkit-backface-visibility:hidden;-webkit-transform-style:preserve-3d;
14, touch the event with Touch series, do not use the click to replace;15, scroll bar scrolling is not as smooth as the original iOS, no rebound effect{Overflow:auto;-webkit-overflow-scrolling:touch;}
16, in the processing of iOS device Web page often encounter such a problem, when I click on the element, click on the area will be a flash of the situation. The solution is very simple, just need to add the following style to the elements of the situation can solve the problem.
The code is as follows:-webkit-tap-highlight-color:rgba (0,0,0,0); This is a unique style for iOS devices, with the principle of removing the color on the back of iOS. 17. Change the style of input default hint placeholder:::-webkit-input-placeholder{font-size:0.24rem;color: #545454; Line-h/ight:0.4rem}do not automatically disappear when focusing:input:focus::-webkit-input-placeholder{ opacity:0; } 18, Remove input type= "number" when the browser comes with the up and down arrows: Input::-webkit-outer-spin-button,Input::-webkit-inner-spin-button { -webkit-appearance:none!important; margin:0; }19, the page sends the text to call to send the mailCall
href= "tel:1857777777" > Call:1857777777>

Texting, Winphone system invalid

href= "sms:10086" > Texting: 10086>

Write Mail

href= "mailto:[email protected]" >[email protected]>

Html Mobile Web Development Details Processing

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.