看到這里,我又瞄了一眼課程大綱,猛然發現后面居然沒有視頻了。。。。,oh! my god!亦步亦趨的學習方式不行了,只能好好學完老師的技巧,然后自己想辦法。
2016-12-20
最新回答 / 慕粉3975888
rem 和 em的區別就是 rem 是根據body的font-size大小來顯示當前元素的大小,em是根據父集的font-size來顯示元素大小的,rem比較方便,直觀,更容易計算一些
2016-12-15
<canvas id="cvs" width="500" height="500"></canvas>
<script>
var cvs = document.getElementById('cvs');
var ctx = cvs.getContext('2d');
ctx.strokeStyle = "red";
ctx.strokeRect(10, 10, 190, 100);
ctx.fillStyle = "blue";
ctx.fillRect(50,10,100,100);
</script>
<script>
var cvs = document.getElementById('cvs');
var ctx = cvs.getContext('2d');
ctx.strokeStyle = "red";
ctx.strokeRect(10, 10, 190, 100);
ctx.fillStyle = "blue";
ctx.fillRect(50,10,100,100);
</script>
2016-12-15