Div css3 border-radius fillet div fillet picture fillet

Source: Internet
Author: User

Div css3 border-radius fillet div fillet picture fillet

CSS3 border-radius fillet div box fillet picture fillet, CSS3 style Implement box object fillet, picture fillet effect. div CSS3 Border-radius fillet style tutorial.
First, CSS3 words and grammatical structure-TOP (body-feeling music mattress)

1. DIVCSS3 Round words:
Border-radius

2. Grammatical structure

DIV{BORDER-RADIUS:5PX}

Set Div Object box Four Corners 5 pixel fillet effect

div{border-radius:5px 0;}

Set Div Object box upper left corner and lower right corner 5px rounded corner, other two corners 0 not rounded (body sense music mattress)

div{border-radius:5px 5px 0 0;}

Set the upper-left corner of the Div object box and the upper-right corner of the 5px fillet, and the other two corners are 0 rounded corners

3. Description:
border-radius:3px 4px 5px 6px
Represents the upper-left corner of the set object 3px fillet, upper right corner 4px rounded corner, lower right corner 5px rounded corner, lower left corner 6px rounded corner.

4. CSS Fillet attribute analysis diagram

CSS3 Border-radius circular Corner structure analysis diagram
CSS3 border-radius fillet Angle Analysis diagram
Second, the CSS3 fillet case-TOP

DIVCSS5 set rounded corners for two div boxes, and a picture to set rounded corners practice CSS3 rounded corners. (Body-feeling music mattress)

1. Case HTML code

<! DOCTYPE html>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Object Fillet Online demo DIVCSS5 vip</title>
<link href= "Images/style.css" rel= "stylesheet" type= "Text/css"/>
<!--www.divcss5.com--
<body>
<div> box top left corner and upper right corner object fillet test </div>
<div class= "box" >div box fillet </div>
<div> Box object fillet fillet Test </div>
<div class= "box3" >div box fillet </div>
<p>&nbsp;</p>
<div> Picture Object Fillet Test </div>
<div class= "Box2" ></div>
</body>

2, Case CSS code:

. box {border-radius:5px 5px 0 0;border:1px solid #000; width:300px; height:80px; margin:0 Auto}
. Box2 img{border-radius:5px}
. box3{border-radius:5px 0; background: #999; width:300px; height:80px; margin:0 Auto}

3. Fillet Case Effect

CSS3 Fillet effect
DIV+CSS3 layout Border-radius for fillet effect (body-feeling music mattress)

4. Case description
1), the first box box to observe the fillet effect, set the border style, and set the fillet style border-radius:5px 5px 0 0; Set the upper-left corner and the upper-right corner rounded corners.

2), the second BOX3 box set the background color, set the fillet style border-radius:5px 0, set the upper-left corner and the lower-right corner rounded corners


3), the third pair of BOX2 box picture img Set the fillet style border-radius:5px, set Four corners are rounded corners.

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.