-
熟悉js基本語法,oClose.onClick=oMask.onClick=function(){...}; document.getElementById("xxx"); document.documentElement.[scrollHeight(Width)實際高度(寬度),clientHeight(Width)可視高度(寬度)]; (xxxx).offsetHeight(Width)元素高度(寬度); document.body.appendChild(),document.body.removeChild();查看全部
-
透明度opacity filter:alpha(opacity=75);兼容IE查看全部
-
彈出層知識點查看全部
-
元素的高度和寬度 offsetHeight var dHeight=oLogin.offsetHeight查看全部
-
js實現元素的添加方法:createElement(“標簽名字”)。 scrollHeight頁面的內容高度 scrollWidth頁面的內容寬度查看全部
-
做登錄等頁面彈出層需要的知識點查看全部
-
好網站。查看全部
-
window.onload=function(){ ......... } 頁面加載時。。。。查看全部
-
刪除元素:document.body.removeChild(oMask);查看全部
-
oMask.onclick=oClose.onclick=function(){ }查看全部
-
Js: 頁面總高度:document.documentElement.scrollHeight; 總寬度:document.documentElement.scrollWidth; 可視區域高度:document.documentElement.clientHeight; ....寬度:document.documentElement.clientWidth; 創建:document.createElement("div") 插入:document.body.appendChild("omask"); 獲取元素高度:ologin.offsetHeight;Width查看全部
-
學習查看全部
-
注意scrollHeight、clientHeight、offsetHeight使用區別。 var oLogin=document.createElement("div"); oLogin.innerHTML="<div class='loginCon'></div>"; window.onload=function(){} btn.onclick=mask.onclick=function(){} document.body.appendChild(oLogin) document.body.removeChild(mask);查看全部
-
document.documentElement.scrollWidth//獲取頁面的高度和寬度 document.documentElement.clientHeight; //獲取頁面的可視區域高度和寬度 var dHeight=oLogin.offsetHeight;// 獲取登陸框的高度 offsetHeight元素的高度查看全部
-
document.body.appendChild(); 在body底部追加創建的節點查看全部
舉報
0/150
提交
取消