Mobile CSS Compatibility 1

Source: Internet
Author: User

1 text-size-adjust:100%;

font-size<12px

None is recommended because none causes page scaling to fail

property is to resolve horizontal screen problems on mobile devices, the font size becomes larger when you cancel a horizontal screen switch

  另外,桌面谷歌27以上已经不支持这个属性了,可用transform:scale(0.875)替代不过为啥一定要用<12的,12px不是很好么    

2:focus{

Outline:none;

}

There really is a need to get the focus of the element, if you cancel the default, or customize a set of user-friendly

3-webkit-tap-highlight-color:rgba (0, 0, 0, 0) can simultaneously block the shadows that appear when you click an element under iOS and Android

4 appearance change the appearance of the buttons and other controls so that they resemble the native controls.

Set to none inner shadow of screen input

-webkit-appearance:none; -moz-appearance:none; -ms-appearance:none; Appearance:none;

5-webkit-touch-callout:none disables the system default menu

6-webkit-transform:translate3d (0, 0, 0) can make animations smoother (this property calls the GPU) under iOS, but it's easy to raise bugs on Android.

7 scrollTo (0,0) Auto-hide browser address bar

8 CSS3 animations affect autofocus, auto focus is done before the animation is executed

9-webkit-font-smooting:antialiased; This property can make the font anti-aliasing on the page. Default is subpixel-antialiased | none;

-moz-osx-font-smooting:grayscale; This attribute is also more clear in the role, especially the icon text popular today.

Reference: http://www.css88.com/webkit/-webkit-appearance/

http://blog.163.com/hsb001_mobile/blog/static/15524028020111177221254/

Mobile CSS Compatibility 1

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.