With the development of the network, CSS is also constantly improving, fully absorbing the needs of the Web development for many years, put forward a lot of new CSS features, such as the very popular rounded rectangle Border-radius properties, but unfortunately, this property is not currently supported by any browser.
For some browsers, they have a private fillet property. such as FF's-moz-border-radius, Safari and Chrome's-webkit-border-radius. See the results:
Rounded corners of FF
Safari and Chrome fillet (Safari and chrome use the same kernel, which only has Chrome effect)
IE and Opera There is no private fillet properties, if any, the production of rounded corners should be much simpler, the respective private properties are all written, so that each browser "seat", to achieve the "compatibility" effect.
An example of a Baidu has ah css fillet scenario is given below:
Xml/html Code
< Div class="Box1">
<span class="TL"></span><span class="TR"></span>
-
&NBSP;&NBSP;&NBSP;&NBSP; <, div class = >
-
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < p > </ >
</div >
<span class="BL"></span><span class="BR"></span>
</ Div >
CSS Code:
JavaScript Code
. box1 {
Background:url (images/bg1.gif) repeat-x #1d6cb7;
Margin-top:1em;
position:relative;
Zoom:1;
width:778px;
}
. box1. TL,. box1. TR,. box1. BL,. Box1. br {
width:5px;
height:5px;
Position:absolute;
Background:url (images/bg3.gif) no-repeat;
Overflow:hidden;
}
. box1. cc {
height:40px;
padding:5px;
}
. box1. TL {
left:0;
top:0;
}
. box1. tr {
right:0;
top:0;
Background-position:0 -5px;
}
. box1. BL {
left:0;
bottom:0;
Background-position:0 -10px;
}
. box1. BR {
right:0;
bottom:0;
Background-position:0 -15px;
}
CSS3 A simple example of drawing a rounded rectangle