步骤:

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> 

 

相关文章:

  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-07-29
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案