Code-only use CSS3 rounded border and box shadow to create iphone Effects

Source: Internet
Author: User

Code-only use CSS3 rounded border and box shadow to create iphone Effects
Css3 brings us a lot of visual feelings and changes. A lot of code can be implemented for the previous operations on images. The following is a brief introduction of the two most common corner borders and box shadows. We also attach an iphone effect to provide you with exercises. 1. border-radius rounded rectangle syntax format: border-radius: horizontal radius/vertical radius, but we usually omit this vertical radius. There is also a method for writing the rounded corner. border-radius: the lower-right corner of the upper-left corner is in the lower-right corner. The clockwise mode is used, as shown in the following code:

1 <! DOCTYPE html> 2 

 

1.2 box-shadow (Box-shadow) box-shadow: horizontal shadow vertical shadow blur distance shadow size shadow color inside and outside shadows; only horizontal and vertical shadows are required. Other values can be omitted with default values. By default, the external shadow outset cannot be written. If you write it, you will not be able to see the effect. For details, refer to the following code:
<! DOCTYPE html> 

 

 

Related Article

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.