第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

我的高度不對(duì)好像只有8px,這是為什么呀?

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>jQuery Validation 插件</title>

<link rel="stylesheet" href=""/>

<style type="text/css">

? ?#mask{

? ? background: #000;

? ? opacity:0.75;

? ? /*解決ie不兼容*/

? ? filter:alpha(opacity=75);

? ? height: 1000px;

? ? width: 100%;

? ? position: absolute;

? ? left:0;

? ? top:0;

? ? z-index: 1000;

? ?}?

? ?#login{

? ? position: fixed;

? ? left: 30%;

? ? top:30%;

? ? z-index: 1001;


? ?}

? ?.logincon{

? ? width: 670px;

? ? height: 380px;

? ? background: url(img/loginBg.png)no-repeat;?

? ? position: relative;

? ? ? }

? #close{

? ? width: 30px;

? ? height: 30px;

? ? background: url(img/close.png) no-repeat;

? ? cursor:pointer;

? ? position: absolute;

? ? right: 0;

? ? top: 0;

? }

</style>

</head>

<!---->

<!--<body>

<dvi id="mask"></dvi>覆蓋層?

<dvi id="login">

? ? <div>

? ? ? ? <div id="close"></div>

? ? </div>

</dvi>內(nèi)容層 --> ?



<script type="text/javascript" >

? window.onload = function(){

? ? var oBtn ?= document.getElementById("btnLogin");//創(chuàng)建元素節(jié)點(diǎn)再生成

? ? //獲取頁(yè)面的高度和寬度

? ? var sHeight = document.documentElement.scrollHeight;

? ? var sWidth ?= document.documentElement.scrollWidth;


? ? var oMask = document.createElement("div")//創(chuàng)建一個(gè)div,下面再給它一個(gè)id

? ? ? ? oMask.id="mask";

? ? ? ? oMask.style.height=sHeight + 'PX';

? ? ? ? oMask.style.width=sWidth + 'PX';

? ? ? ? document.body.appendChild(oMask);//在頁(yè)面追加一個(gè)節(jié)點(diǎn)?

? }

</script>

</body>

</html>


正在回答

1 回答

第六行代碼格式好像不對(duì)?。?/p>


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
彈出層效果
  • 參與學(xué)習(xí)       39053    人
  • 解答問(wèn)題       162    個(gè)

通過(guò)本課程的學(xué)習(xí)讓您能靈活運(yùn)用知識(shí),制作出超炫的彈出層效果

進(jìn)入課程

我的高度不對(duì)好像只有8px,這是為什么呀?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)