html+css提示框/弹窗公告实例【记录】
生活随笔
收集整理的這篇文章主要介紹了
html+css提示框/弹窗公告实例【记录】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
簡介
html+css提示框/彈窗公告實例
演示
實例代碼
<!-- 彈窗代碼開始 --> <div class="web_notice" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.3);z-index: 99999;"> <div style="position: fixed;top: 50%;left: 50%;width: 550px;background: #FFF;transform: translate(-50%, -50%);border-radius: 40px;padding: 50px 40px;"> <h3 style="font-weight: bold;text-align: center;font-size: 30px; ">網站通知</h3><div style="font-size: 16px;margin-top: 26px;line-height: 30px;color: #999; ">網站公告代碼測試1,網站公告代碼測試2,網站公告代碼測試3,網站公告代碼測試4,網站公告代碼測試5. - 于飛工作室</div><a style="display: block;background: #98a3ff;color: #FFF;text-align: center;font-weight: bold;font-size: 19px;line-height: 60px;margin: 0 auto;margin-top: 45px;border-radius: 32px;width: 80%;" onclick="javascript:document.querySelector('.web_notice').remove()">我知道了</ a></div></div> <!-- 彈窗代碼結束 -->總結
以上是生活随笔為你收集整理的html+css提示框/弹窗公告实例【记录】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: QT中Json的使用方法(类和json字
- 下一篇: 云计算入门:FusionAccess桌面