14HUI - 全屏消息(hui.blackMask)

简介: 14HUI - 全屏消息(hui.blackMask)

效果图

代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>HUI</title>
<link rel="stylesheet" type="text/css" href="../css/hui.css" />
</head>
<body>
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>全屏消息层</h1>
</header>
<div class="hui-wrap">
    <div class="hui-common-title" style="margin-top:15px;">
        <div class="hui-common-title-line"></div>
        <div class="hui-common-title-txt">全屏消息层演示</div>
        <div class="hui-common-title-line"></div>
    </div>
    <div style="padding:50px;">
        <button type="button" class="hui-button hui-button-large" "hui.shwoBlackMasker();">展示消息</button>
    </div>
</div>
<!-- 核心代码 : 在 hui-black-mask 内完善您的消息内容 -->
<div id="hui-black-mask">
    <!-- 演示消息内容 -->
    <div id="hui-black-mask-content">
        <div id="hui-black-action">
            <div id="hui-black-close"></div>
        </div>
        <div style="text-align:center;"><img src="../img/gift.png" width="230" /></div>
        <div style="text-align:center; color:#FFFFFF; line-height:60px;">
            一个演示广告
        </div>
    </div>
</div>
<script src="../js/hui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
hui.blackMask();
</script>
</body>
</html>
目录
相关文章
15HUI - Loading动画(hui.loading)
15HUI - Loading动画(hui.loading)
53 0
15HUI - Loading动画(hui.loading)
|
JavaScript
10HUI - 按钮(hui-button)
10HUI - 按钮(hui-button)
61 0
|
JavaScript
25HUI - 下拉刷新(hui-loading-wrap)
25HUI - 下拉刷新(hui-loading-wrap)
63 0
24HUI - 图片懒加载(hui-lazy)
24HUI - 图片懒加载(hui-lazy)
25 0
03HUI -基础文本(hui-common-title)
03HUI -基础文本(hui-common-title)
52 0
17HUI - 进度条(hui-progress)
17HUI - 进度条(hui-progress)
42 0
17HUI - 进度条(hui-progress)
11HUI - 数字标识(hui-badge)
11HUI - 数字标识(hui-badge)
48 0
11HUI - 数字标识(hui-badge)
26HUI - 上拉加载(hui-refresh)
26HUI - 上拉加载(hui-refresh)
59 0
|
JavaScript
22HUI - 轮播组件(hui-swipe)
22HUI - 轮播组件(hui-swipe)
58 0
13HUI - 模态对话框(hui.alert、hui.confirm)
13HUI - 模态对话框(hui.alert、hui.confirm)
75 0