茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    HTML彈出透明層事例大小可以設(shè)置也可以比例化
    來源:易賢網(wǎng) 閱讀:1194 次 日期:2014-07-23 17:26:44
    溫馨提示:易賢網(wǎng)小編為您整理了“HTML彈出透明層事例大小可以設(shè)置也可以比例化”,方便廣大網(wǎng)友查閱!

    代碼如下:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />

    <title>LIGHTBOX EXAMPLE</title>

    <style>

    * {

    margin:0;

    padding:0

    }

    html, body {

    height: 100%;

    width: 100%;

    font-size:12px

    }

    .white_content {

    display: none;

    position: absolute;

    top: 25%;

    left: 25%;

    width: 50%;

    padding: 6px 16px;

    border: 12px solid #D6E9F1;

    background-color: white;

    z-index:1002;

    overflow: auto;

    }

    .black_overlay {

    display: none;

    position: absolute;

    top: 0%;

    left: 0%;

    width: 100%;

    height: 100%;

    background-color:#f5f5f5;

    z-index:1001;

    -moz-opacity: 0.8;

    opacity:.80;

    filter: alpha(opacity=80);

    }

    .close {

    float:right;

    clear:both;

    width:100%;

    text-align:right;

    margin:0 0 6px 0

    }

    .close a {

    color:#333;

    text-decoration:none;

    font-size:14px;

    font-weight:700

    }

    .con {

    text-indent:1.5pc;

    line-height:21px

    }

    </style>

    <script>

    function show(tag){

    var light=document.getElementById(tag);

    var fade=document.getElementById('fade');

    light.style.display='block';

    fade.style.display='block';

    }

    function hide(tag){

    var light=document.getElementById(tag);

    var fade=document.getElementById('fade');

    light.style.display='none';

    fade.style.display='none';

    }

    </script>

    </head>

    <body>

    <a href="javascript:void(0)" onclick="show('light')">打開1</a>

    <a href="javascript:void(0)" onclick="show('light2')">打開2</a>

    <div id="light" class="white_content">

    <div class="close"><a href="javascript:void(0)" onclick="hide('light')"> 關(guān)閉</a></div>

    <div class="con">

    內(nèi)容1 內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容內(nèi)容

    </div>

    </div>

    <div id="light2" class="white_content">

    <div class="close"><a href="javascript:void(0)" onclick="hide('light2')"> 關(guān)閉</a></div>

    <div class="con">

    內(nèi)容2

    </div>

    </div>

    <div id="fade" class="black_overlay"></div>

    </body>

    </html>

    代碼全在上面了,可以復(fù)制試試...彈出層的大小可以設(shè)置,也可以比例化

    更多信息請查看IT技術(shù)專欄

    更多信息請查看網(wǎng)頁制作
    由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!

    2026國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
    云南網(wǎng)警備案專用圖標(biāo)
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
    云南網(wǎng)警報警專用圖標(biāo)