12 2016 档案
摘要:var a=123; console.log(typeof a); // number; var a=123+""; console.log(typeof a); // string;
阅读全文
摘要:盒子模型有两种,分别是 IE 盒子模型(怪异盒模型)和标准 W3C 盒子模型。 先来看看我们熟悉的标准盒子模型: 从上图可以看到标准 W3C 盒子模型的范围包括 margin、border、padding、content,并且 content 部分不包含其他部分。 盒子总宽度/高度=width/he
阅读全文
摘要:js获取屏幕高度和宽度 window.onload = function(){ // 获取屏幕高度 document.documentElement.clientHeight console.log(document.documentElement.clientHeight); // 获取屏幕宽度
阅读全文

浙公网安备 33010602011771号