border-radius IE8相容處理,border-radiusie8

來源:互聯網
上載者:User

border-radius IE8相容處理,border-radiusie8

根據canisue(http://caniuse.com/#search=border-radius),border-radius相容性如所示:

 

測試代碼:
 1 <!DOCTYPE html> 2 <html> 3  4     <head> 5         <meta charset="UTF-8"> 6         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 7         <title></title> 8         <style type="text/css"> 9             * {10                 margin: 0;11                 padding: 0;12             }13             14             #header {15                 width: 400px;16                 height: 400px;17                 margin: 10px;18                 border-radius: 10px;19                 border: 1px solid red;20             }21         </style>22     </head>23 24     <body>25         <div id="header">26         </div>27     </body>28 29 </html>

IE8瀏覽器效果:

border-radius在IE8瀏覽器安全色方案:

 1 <!DOCTYPE html> 2 <html> 3  4     <head> 5         <meta charset="UTF-8"> 6         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 7         <title></title> 8         <style type="text/css"> 9             * {10                 margin: 0;11                 padding: 0;12             }13             14             #header {15                 width: 400px;16                 height: 400px;17                 margin: 10px;18                 border-radius: 10px;19                 border: 1px solid red;20                 /*關鍵屬性設定 需要把路徑設定好*/21                 behavior: url(PIE.htc);22             }23         </style>24     </head>25 26     <body>27         <div id="header">28         </div>29     </body>30 31 </html>

 IE8瀏覽器下效果:

 

 

PIE.HTC:http://css3pie.com/

PIE可以處理CSS3的一些屬性,如:

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.