CSS3 Basic Properties

Source: Internet
Author: User

1. Browser prefixes

(1)-webkit-(WebKit, Chrome, Safari)

(2)-moz-(Firefox)

(3)-ms-(Internet Explorer)

(4)-o-(opera)

It is recommended to write an unprecedented statement at the end!

2. Creating fillets for elements (Border-radius)

(1) Create the same four rounded corners for the element:-webkit-border-radius:10px;

(2) Create a fillet for the element:-webkit-border-top-left-radius:10px;//Create a rounded corner of the upper-left corner

-moz-border-radius-topleft:10px;

(3) Create an oval fillet for the element:-webkit-border-radius:x/y;//x: The radius size of the original angle in the horizontal direction y: The size of the original angle in the vertical direction

(4) Create round fillets for elements:-webkit-border-radius:r;//r: The radius size of the element, and R should be equal to half the height or width of the element.

All new versions of browsers now support the Border-radius attribute, which is not prefixed.

CSS3 Basic Properties

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.