The Border-radius property of the input box is perfectly compatible under IE8

Source: Internet
Author: User

In the work we found that most of the search box has rounded corners, as an inexperienced front-end personnel can easily think of the input tag to add the Border-radius attribute is not solved. Good method is true, but do not forget Border-radius is CSS3 property, IE8 incompatible!!! So the question is, how to be perfectly compatible under the IE8?

There are many online CSS3 properties on the IE8 compatible method, need to introduce PIE.HTC this file, I believe it is easy to search and download the file, but the use of Position:relative;behavoior:url (PIE.HTC), and then found that the fillet is realized, But there's a black border like this in the picture.

Under normal conditions, there are black edges IE8

Workaround:

The border:none of the input tag; the outer rounded border is set with the label of the envelope, in order not to affect the aesthetics in conjunction with margin or padding

As shown in the final results, the FF Chome are perfectly compatible

The Border-radius property of the input box is perfectly compatible under IE8

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.