< img class ="b-img-radius" src ="i/tmp/1.jpg" />
* This source code was highlighted with Source Code Highlighter .
/* IMG radius */
.b-img-radius {
border: 1px solid #000;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
/* ----------- */
* This source code was highlighted with Source Code Highlighter .
< div class ="b-img-radius" style ="background: url(i/tmp/1.jpg); width: 250px; height: 167px" ></ div >
* This source code was highlighted with Source Code Highlighter .
< div class ="b-img-radius" style ="background: url(i/tmp/1.jpg)" >< img src ="i/tmp/1.jpg" /></ div >
* This source code was highlighted with Source Code Highlighter .
/* IMG radius */
.b-img-radius {
zoom: 1;
position: relative;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
display: inline-block;
vertical-align: top;
}
.b-img-radius img {
display: block;
visibility: hidden;
}
/* ----------- */
* This source code was highlighted with Source Code Highlighter .
/* IMG radius */
.b-img-radius {
.......
behavior: url(css/PIE.htc);
}
* This source code was highlighted with Source Code Highlighter .
< a href ="#" class ="b-img-radius" style ="background: url(i/tmp/1.jpg); width: 250px; height: 167px" >< img src ="i/tmp/1.jpg" /></ a >
* This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/107093/