1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "Utf-8"/>5 <style>6 Div{7 Height:35px;8 Line-height:35px;9 Border:2px solid #a1a1a1;Ten background:#dddddd; One width:350px; A } - - . Div1{ the Border-radius:35px; - -moz-border-radius:35px; - /*the old Firefox*/ - } + - . Div2{ + Border-radius:35px/5px; A -moz-border-radius:35px; at /*the old Firefox*/ - } - </style> - </Head> - - <Body> in - <Divclass= "Div1">The Border-radius property allows you to add rounded corners to elements.</Div> to <Div>The Border-radius property allows you to add rounded corners to elements.</Div> + <Divclass= "Div2">The Border-radius property allows you to add rounded corners to elements.</Div> - </Body> the * </HTML>
The browser results are displayed as follows:
Radius 35px,div height 35px; diameter is less than div height, size is calculated as div height
CSS3 Properties--border-radius Usage