MsgPopup实现一个消息通知弹出层效果代码

代码语言:html

所属分类:弹出层

代码描述:MsgPopup实现一个消息通知弹出层效果代码

代码标签: 消息 通知 弹出 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>消息推送插件</title>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/MsgPopup.css">

    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/MsgPopup.js"></script>
    <style>
        .cen {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .msgpopup {
            float: left;
        }

        .custom-color {
            border: 1px solid blueviolet;
            background-color: blueviolet;
        }

        .height50 {
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>
<body>
    <div class="msgpopup popup-cs">
        <div class="msg-popup info-color">
            <div class="msg-times" style="cursor: pointer;">
                &times;
            </div>
            <div class="centerSpace msg-title">
                <div>
                    普通消息1
                </div>
                <div class="msg-date-info">
                    2021-06-07 10:40:00
                </div>
            </div>
            <div class="popup-msg-content">
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                <span>这是普通消息1</span>
            </div>
        </div>

        <div class="msg-popup info2-color">
            <div class="msg-times" style="cursor: pointer;">
                &times;
            </div>
            <div class="centerSpace msg-title">
                <div>
                    普通消息2
                </div>
                <div class="msg-date-info">
                    2021-06-07 10:40:00
                </div>
            </div>
            <div class="popup-msg-content">
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                <span>这是普通消息2</span>
            </div>
        </div>

        <div class="msg-popup succeed-color">
            <div class="msg-times" style="cursor: pointer;">
                &times;
            </div>
            <div class="centerSpace msg-title">
                <div>
                    成功消息
                </div>
                <div class="msg-date-info">
                    2021-06-07 10:40:00
                </div>
            </div>
            <div class="popup-msg-content">
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                <span>这是成功消息</span>
            </div>
        </div>

        <div class="msg-popup warning-color">
            <div class="msg-times" style="cursor: pointer;">
                &times;
            </div>
            <div class="centerSpace msg-title">
                <div>
                    警告消息
                </div>
                <div class="msg-date-info">
                    2021-06-07 10:40:00
                </div>
            </div>
            <div class="popup-msg-content">
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                <span>这是警告消息</span>
            </div>
        </div>

        <div class="msg-popup error-color">
            <div class="msg-times" style="cursor: pointer;">
                &times;
            </div>
            <div class="centerSpace msg-title">
                <div>
                    错误消息
                </div>
                <div class="msg-date-info">
                    2021-06-07 10:40:00
                </div>
            </div>
            <div class="popup-msg-content">
                <i class="fa fa-info-circle" aria-hidden="true"></i>
                <span>这是错误消息</span>
            </div>
        </div>

        <.........完整代码请登录后点击上方下载按钮下载查看

网友评论0