上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 1 4 5 6 iframe 可以覆盖 select 7 1 select{width: 160px;height: 20px;float: left;}2 .wrap{position: relative;z-index: 99;width: 400px;height: 400px;background: red;margin-left: -100px;float: left;} 1 var iframe = document.createElement("iframe"), wrap = document.getElementById... 阅读全文
posted @ 2013-11-05 13:44 楚玉 阅读(283) 评论(2) 推荐(0) 编辑
摘要: 1 function draw(id){ 2 var canvas = document.getElementById(id); 3 if(canvas.getContext == null){ 4 return false; 5 } 6 var context = canvas.getContext("2d"); 7 var img = new Image(); 8 img.src = "heng.jpg"; 9 img.onload = function... 阅读全文
posted @ 2013-11-04 13:39 楚玉 阅读(364) 评论(1) 推荐(0) 编辑
摘要: 1 function draw(id){ 2 var canvas = document.getElementById(id); 3 if(canvas == null){ 4 return false; 5 } 6 var context = canvas.getContext("2d"); 7 8 var imageData = context.createImageData(500,500); 9 var pixels = imageData.data;10 11 ... 阅读全文
posted @ 2013-11-04 11:26 楚玉 阅读(374) 评论(1) 推荐(0) 编辑
摘要: 1 2 3 1 function draw(id){ 2 var canvas = document.getElementById(id); 3 if(canvas == null){ 4 return false; 5 } 6 var context = canvas.getContext("2d"); 7 var img = new Image(); 8 img.src = 'heng.jpg'; 9 img.onload = function(... 阅读全文
posted @ 2013-11-01 17:33 楚玉 阅读(770) 评论(3) 推荐(0) 编辑
摘要: 1 1 // 使图像反显 2 function draw(id){ 3 var canvas = document.getElementById(id); 4 if(canvas == null){ 5 return false; 6 } 7 var context = canvas.getContext("2d"); 8 var img = new Image(); 9 img.src = 'heng.jpg';10 img.onload = fu... 阅读全文
posted @ 2013-11-01 17:05 楚玉 阅读(399) 评论(0) 推荐(0) 编辑
摘要: div{ width:100px; height: 200px; transition: width 2s; -moz-transition: width 2s; /* Firefox 4 */ -webkit-transition: width 2s; /* Safari 和 Chrome */ -o-transition: width 2s; /* Opera */ background: #000; }transition 属性是一个简写属性,用于设置四个过渡属性:transition... 阅读全文
posted @ 2013-11-01 10:42 楚玉 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 var canvas = document.getElementById("myCanvas"); 2 if(canvas.getContext == null){ 3 return false; 4 } 5 var context = canvas.getContext("2d"); 6 context.shadowBlur = 20; 7 context.shadowColor = "rgb(0,0,0)"; 8 context.fillRect(150,150,100,100); 9 10 context.sh... 阅读全文
posted @ 2013-10-29 13:58 楚玉 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 A basic HTML5 blog homepage 6 9 10 11 12 13 14 15 16 17 18 19 71 72 阅读全文
posted @ 2013-10-26 15:18 楚玉 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 drag 6 9 10 11 12 -->13 14 15 A drawing of something.16 17 18 93 94 阅读全文
posted @ 2013-10-26 15:16 楚玉 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1 var oWrap = document.getElementById("wrap"); 2 function setOpacity(node, level){ 3 node = typeof node === "string" ? document.getElementById(node) : node; 4 if(!document.all){ 5 node.style.opacity = level/100; 6 }else{ 7 ... 阅读全文
posted @ 2013-10-24 14:02 楚玉 阅读(191) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页