ie8兼容圆角
ie8兼容圆角
PIE.HTC下载地址:http://css3pie.com/
兼容ie8 代码如下:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>border-radius</title> <style type="text/css"> * { margin: 0; padding: 0; } #header { width: 400px; height: 400px; margin: 10px; border-radius: 10px; border: 1px solid red; /*关键属性设置 需要把路径设置好*/ behavior: url(PIE.htc); } </style> </head> <body> <div id="header"> </div> </body> </html>