635373-1-ref.html (666B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <style> 5 body { background:white; } 6 #d { 7 position:absolute; 8 top:200px; 9 left:200px; 10 font-size:30px; 11 transform:rotate(30deg); 12 transform:rotate(30deg); 13 background:url(100x80-white-rect-top-right.png); 14 } 15 canvas { display:block; } 16 span { display:block; background:rgb(200,200,200); height:40px; } 17 </style> 18 </head> 19 <body> 20 <div id="d"><span style="width:20px"><canvas id="c" width="20" height="20"></canvas></span> 21 <span style="width:100px;"></span> 22 </div> 23 <script> 24 var ctx = document.getElementById("c").getContext("2d"); 25 ctx.fillStyle = "lime"; 26 ctx.fillRect(5,5,5,5); 27 </script> 28 </body> 29 </html>