[英]Div expanding to fit content even when width and height explicitly set
設置容器的CSS大小和畫布的元素大小:
$("#container").css("width", 100);
$("#container").css("height", 100);
$("canvas").attr("width", 150);
$("canvas").attr("height", 150);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.