目前而言firefox,opera,chrome等主流浏览器都已经支持border-radius属性,唯独IE8以及之前。
解决办法就是在用的border-radius属性的后面加上:behavior: url(ie-css3.htc);
ie-css3.htc问价下载地址:http://pan.baidu.com/s/1hsGt8e4
"<span style="color: #800000;">en</span><span style="color: #800000;">"</span>> <meta charset="<span" style="color: #800000;">"<span style="color: #800000;">UTF-8</span><span style="color: #800000;">"</span>> <title>border-radius兼容IE</title> <style><span style="color: #000000;"> .d1{ width: 5em; height:5em; background: #e4393c; <span style="color: #008000;">/*<span style="color: #008000;">防止浏览器版本过低<span style="color: #008000;">*/ -moz-border-radius: <span style="color: #800080;">50%<span style="color: #000000;">; -webkit-border-radius: <span style="color: #800080;">50%<span style="color: #000000;">; border-radius: <span style="color: #800080;">50%<span style="color: #000000;">; <span style="color: #008000;">/*<span style="color: #008000;">解决IE<span style="color: #008000;">*/<span style="color: #000000;"> behavior: url(ie-<span style="color: #000000;">css3.htc); } </style> <div style="color: #0000ff;">class=<span style="color: #800000;">"</span><span style="color: #800000;">d1</span><span style="color: #800000;">"</span>></div>