`
yw8886484
  • 浏览: 1027 次
文章分类
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
让ie6,7,8支持canvas,css3等主流html5技术 html5, css3, 兼容 让ie6,7,8支持canvas,css3等主流html5技术
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML>
<HEAD>
 <TITLE> fewfwe</TITLE>
<head>
 
 <style type="text/css">
  body { 
   background: #444; 
     color: #FFF;
     font-family: Helvetica, Arial, sans-serif;
     text-align: center;
 }
 
 #cv {
     width: 600px; height: 400px;
     background: #000;
    border-radius: 20px;
     padding: 20px;
     margin: 20px auto;
    box-shadow: 0 0 40px #222;
     behavior: url(public/ie-css3.htc);
    
 }
 </style>

 <script type="text/javascript">
 function test() {
var ctx = document.getElementById("cv").getContext("2d");
   
   ctx.fillStyle = "#aa0000";
   ctx.beginPath();
   ctx.arc(100, 100, 25, 0, Math.PI*2, true);
   ctx.closePath();
   ctx.fill();
 }

 window.onload = test;
  </script>

 </head>
 <body>
<!--[if IE]>
    <script src="public/html5.js" type="text/javascript"></script>
    <script type="text/javascript" src="public/excanvas.compiled.js"></script>
<![endif]-->
 <canvas id="cv"></canvas>
 </body>

Global site tag (gtag.js) - Google Analytics