我找不到关于HTML5 Canvas的答案。我能否更改原点的坐标,以便我的图形一起向右移动15像素(仅作示例)。以下是给定的HTML和CSS:
<canvas id="g" width="auto" height="auto">Your browser doesnt support canvas tag</canvas>
CSS:
canvas, section {
display: block;
}
#g {
position: absolute;
width:100%;
height:100%;
overflow:hidden;
}