步驟:
1、引入文件。注意PIE.htc文件和css文件要放在同一個目錄下;
2、在css元素中加上 behavior:url(pie.htc);
3、可以愉快的寫css hack啦 ,這時需要的圓角平移等等部分css3屬性在ie6\7\8上都可以展示出來
<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> .container{ width:250px; height:250px; background-color:#34538b; -moz-border-radius:5px; -webkit-border-radius:5px; box-border-radius:5px; behavior:url(pie.htc); } </style> </head> <body> <div class="container"></div> </body> </html>