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>

 

posted on 2017-12-16 11:01  梦幻飞雪  阅读(2112)  评论(0编辑  收藏  举报