Mobile side common compatibility problems and solutions

Source: Internet
Author: User

    1. When using the pop-up transform:translate3d(-50%,-50%,0) box (DIV), the inner text is blurred on the PC.
      Workaround: Define a style for the body

      body{     font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;}
    2. With position:absolute/fixed; a button pinned to the bottom of the page, on the Android system, when the input method is called, the button will be top
      WORKAROUND: Use media queries @media screen and (max-width:400px){} when the page height is less than a certain value, give the element a top value

    3. The system cannot monitor input events when the iOS system calls a third-party IME input、focus、change、blur
      Workaround: Calculate the length of the input value length to determine if the value of input changes

    4. Different browser default margin,padding are different.

      *{margin:0;padding:0;}
    5. Different browsers have different minimum fonts, some 10px, some 12px
      Workaround: When setting the font, do not less than 12px, if it must be less than 12px, use transform:sacle() to zoom
    6. Transparency Opacity
      Workaround: IE8 and earlier versions support the alternative Filter property. For example:filter:Alpha(opacity=50)
    7. Text ends centered text-align:justify;text-align-last:just; on the mobile side does not work
      Workaround: Use & #160 instead of spaces

Mobile side common compatibility problems and solutions

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.