<! DOCTYPE html>
<meta charset= "Utf-8" >
<meta http-equiv= "x-ua-compatible" content= "Ie=edge" >
<title>disc Report </title>
<link rel= "stylesheet" href= "" >
<style>
. box {
width:300px;
height:300px;
position:relative;
}
. box:before {
Content: ";
border-bottom:1px solid #d3d3d3;
Position:absolute;
top:150px;
left:25px;
width:250px;
Z-index:9;
}
. box:after {
Content: ";
border-left:1px solid #d3d3d3;
Position:absolute;
left:150px;
top:25px;
height:250px;
Z-index:9;
}
. Box canvas{
Position:absolute;
Z-index:10;
}
. bg{
width:0;
height:0;
box-shadow:0 0 0 17px #fefefe,
0 0 0 18px #d3d3d3,
0 0 0 35px #efefef,
0 0 0 36px #d3d3d3,
0 0 0 53px #fefefe,
0 0 0 54px #d3d3d3,
0 0 0 71px #efefef,
0 0 0 72px #d3d3d3,
0 0 0 89px #fefefe,
0 0 0 90px #d3d3d3;
Position:absolute;
left:150px;
top:150px;
Transform:rotatez (45DEG);
}
</style>
<script>
function Draw (ID) {
var CTX = document.getElementById (ID). GetContext (' 2d ');
Ctx.beginpath ();
Ctx.moveto (150,96);
Ctx.lineto (230,150);
Ctx.lineto (150,200);
Ctx.lineto (130,150);
Ctx.lineto (150,96);
Ctx.strokestyle= "#ff7f50";
Ctx.stroke ();
}
</script>
<body onload= "Draw (' disc ')" >
<div class= "box" >
<canvas id= "disc" width= "300px" height= "300px" ></canvas>
<div class= "BG" ></div>
</div>
</body>
Using canvas to achieve disc evaluation Results view display