CSS3 appearance on the iphone above the problem

Source: Internet
Author: User

Recently, when I was doing the project, I found the iphone Kaminaka

<input type= "button" > some of the properties that came with the CSS style after it was modified, and then no such problem occurs on the Android phone,

Found some information on the Internet,

Use "-webkit-appearance:none; "To change the default style of the button under the iphone, in fact we can reverse the idea,

Use the "Appearance" property to change the browser default style of any element, simply speaking,

You can use the Appearance property to render paragraph p as a button style or as an effect such as an input box, a marquee, and so on.

Everyone knows that each browser has different rendering of HTML elements, such as "button", which is rendered differently in Chrome and FF.

With this idea today, using the browser's default rendering style for elements, we can use the "appearance" property to change the rendering style of any element,

In the simplest case, I'm going to show the "a" link as the "button" style by default, so we can use "appearance" to set it to "buttons".

"Appearance" function sounds quite large, but unfortunately, the current browser manufacturers are fragmented, still unable to achieve a unified standard,

To today, only two of the kernel browser can be used, one is "WebKit", the other is "FF", that is, when using "appearances", you need to add the browser factory prefix.

appearance How to use :

. Elmclass{-webkit-appearance:value;-moz-appearance:value;appearance:value;}

  

CSS3 appearance on the iphone above the problem

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.