日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > CSS >内容正文

CSS

【CSS实现Loading遮罩】点击按钮,弹出一个DIV层窗口

發布時間:2024/2/28 CSS 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【CSS实现Loading遮罩】点击按钮,弹出一个DIV层窗口 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

加載中 gif 圖片:


頁面效果:


源碼

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>點擊文字彈出一個DIV層窗口代碼</title> <style> .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.6; opacity:.60; filter: alpha(opacity=66); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 55%; height: 55%; padding: 20px; border: 10px solid orange; background-color: white; text-align: center;z-index:1002; overflow: auto; } </style> </head> <body> <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">請點這里</a></p> <!-- 加載中遮罩 --><div id="light" class="white_content" ><font size="5">正在努力轉換中 ~ 此過程大約需要20秒,請耐心等待<br></font><img src='loading.gif' width='400px' height='300px'/></div> <div id="fade" class="black_overlay"></div> </body> </html>

總結

以上是生活随笔為你收集整理的【CSS实现Loading遮罩】点击按钮,弹出一个DIV层窗口的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。