Remove select border and triangular-----appearance:none

Source: Internet
Author: User

Find a more interesting attribute today, Appearance:none

There may be friends who do not know, but there is a label you must know: SELECT.

The style of this tag is this:

In general, we use the border:0; Removing a border this way in some browsers is not working for it, for example: Opera browser does not work.

Another example of Google Browser, although the role of the border can be removed, but the right side of the inverted triangle has been preserved.

such as this:

If you want to remove both the border and the inverted triangle of SELECT, here are two ways to share it with you.

1. You can set a div tag in the external package of select, set the width and height of the inside select by setting out the hidden property.

2. If you feel that the above method is troublesome, you can use a property of CSS3.

Appearance:none

-moz-appearance:none/* Firefox */

-webkit-appearance:none/* Apple and Google */

Remove select border and triangular-----appearance:none

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.