CSS3 Appearance Introduction

Source: Internet
Author: User

Let's take a quick look at the CSS appearance mentioned above. When I studied HTML5 forms, I was curious about what browsers were doing to render different form interfaces, and later found this interesting attribute in chrome when looking at type range input:

And then the style on the right shows this:

It was later found that the CSS3 specification had a definition for appearance, and MDC also had a description of the attribute.

This is a very interesting attribute that can be used to disguise or implement some special interface, such as the Input[type=text appearance set to button, it looks like a button:

The style is as follows:

1
2
3
4
input[type=text]{
	-moz-appearance:button;
	-webkit-appearance:button;
	Appearance:button;}

But now only WebKit and Firefox are supported by private properties , and there is no full formal support for the major browsers, and the Appearance property values they support are not exactly the same. However, since the wide-web will be included in the specification, I believe that in the near future, the major browsers will implement some basic support for this attribute, so that we can better control the performance of the elements of the page.

David Walsh also briefly described this attribute, but only for WebKit, and he made a demo page.

For more information about CSS3 appearance, please refer to:

    • Https://developer.mozilla.org/en/CSS/-moz-appearance
    • http://www.w3.org/TR/css3-ui/

We will also keep an eye on the progress of this attribute in each browser.



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.