【发布时间】:2015-12-03 06:58:31
【问题描述】:
在下面的html元素中,
<canvas style="padding: 0px; margin: 0px; border: 0px none; background: transparent none repeat scroll 0% 0%; position: absolute; top: 0px; left: 0px; width: 1017.5px; height: 226.5px;" ></canvas>
我只需要将样式属性中的宽度和高度替换为其他值。如何使用 jQuery 实现这一点?
谢谢...
【问题讨论】:
-
$('canvas').width(newWidthValue).height(newHeightValue)