Use css to remove the default control style from webikt kernel browsers such as chrome and safari. chromewebikt

Source: Internet
Author: User

Use css to remove the default control style from webikt kernel browsers such as chrome and safari. chromewebikt

There is a private property of such a webkit:

-Webkit-appearance: none;/* remove the default input style */

When this style is added and the value is 'none', the browser's default style for the control can be canceled.

In addition, this property also has a magical place ~ It can be used to call the display browser's default style for various controls,

For example, I am a span !! The display effect is the built-in style of the button tag.

Haha, it's interesting ~

In addition, this attribute can be used to remove the default button style of the Iphone's disgusting oversized rounded corner, so that the edited button style can be displayed normally.

The following figure shows the values that this property may have. It is also the default effect of the browser control that can be displayed.

Checkbox

Radio

Push-button

Square-button

Button

Button-bevel

Listbox

Listitem

Menulist

Menulist-button

Menulist-text

Menulist-textfield

Scrollbarbutton-up

Scrollbarbutton-down

Scrollbarbutton-left

Scrollbarbutton-right

Scrollbartrack-horizontal

Scrollbartrack-vertical

Scrollpolicumb-horizontal

Scrollpolicumb-vertical

Scrollbargripper-horizontal

Scrollbargripper-vertical

Slider-horizontal

Slider-vertical

Sliderthumb-horizontal

Sliderthumb-vertical

Caret

Searchfield

Searchfield-decoration

Searchfield-results-decoration

Searchfield-results-button

Searchfield-cancel-button

Textfield

Textarea

Related Article

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.