2017年2月21日

js获取浏览器宽高

摘要: IE中: document.body.clientWidth ==> BODY对象宽度 document.body.clientHeight ==> BODY对象高度 document.documentElement.clientWidth ==> 可见区域宽度 document.documentE 阅读全文

posted @ 2017-02-21 19:20 sjpqy 阅读(634) 评论(0) 推荐(2) 编辑

Canvas绘图

摘要: 一、canvas 1、概念 canvas一般就是用来绘制图像的 2、基本知识 上下文对象 var canvas = doucment.getElementById("canvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "color 阅读全文

posted @ 2017-02-21 18:16 sjpqy 阅读(216) 评论(0) 推荐(2) 编辑

导航