Using CSS to achieve rounded corners on IE7, 8

Source: Internet
Author: User

First, a time ago to do a page has rounded corners of the effect, the use of border-radius:50%, but the detection of compatibility found in IE7/8 and other ancient versions do not support the percentage of Border-radius display, helpless can only be replaced with pictures.

But as a front-end, can use CSS to solve the picture, should be used to solve the CSS

Second, the use of CSS-compatible IE7/8 to achieve round-angle effect

Because Border-radius does not support percent display in ie7/8, we can only use another method, using the dotted in border-style to make the effect like border-radius:50%:

And also add border-radius:50% in the style, this can also be compatible with IE9 and above browser;

HTML code:

CSS styles are as follows:

Using CSS to achieve rounded corners on IE7, 8

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.