Disable the default button style in the safari browser, and disable iButton.

Source: Internet
Author: User
Tags ibutton

Disable the default button style in the safari browser, and disable iButton.

Two days ago, I encountered another headache. After debugging the style on Chrome, I went to the mobile phone to open it. It was silly...

What is this...
I searched it to find out that this is a ghost of the appearance attribute...

For example, if you want a div to have a button style, you can write it like this.

Div {appearance: button;-moz-appearance: button;/* Firefox */-webkit-appearance: button;/* Safari and Chrome */}

So you can only display the default button style after you cancel it.

Input, button {appearance: none;-moz-appearance: none;-webkit-appearance: none ;}

Note browser support
All mainstream browsers do not support the appearance attribute.
Firefox supports the alternative-moz-appearance attribute.
Safari and Chrome support the replaced-webkit-appearance attribute.

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.