Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<script type="text/javascript" src="//apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js">
</script>
</head>
<body>
<canvas id = "mycanvas" style = "border:1px solid red;">
</canvas>
<input type = "button" id = "btn" value = "变成有色的三角形" onclick = "bian()" />
<input type="button" id ="btn_y" value="圆" onclick="yuan()"/>
</body>
</html>
xxxxxxxxxx
body {
background-image: url(/themes/zhan/styles/images/bg-body.jpg);
}
.main {
width: 80%;
margin: auto;
text-align: center;
border: 1px solid #e0e0e0;
box-shadow: 0 0 2px #ddd;
word-wrap: break-word;
padding: 10px;
border-radius: 3px
window.onload = function (){
var mycanvas = document.getElementById("mycanvas");
var getcon = mycanvas.getContext("2d");
getcon.beginPath();
getcon.moveTo(0,0);
getcon.lineTo(90,90);
getcon.lineTo(120,40);
getcon.stroke();
function bian(){
mycanvas.height = mycanvas.height;
getcon.moveTo(100,0);