<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta name="format-detection" content="telephone=no, address=no">
    <title>提示</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <style>
        
        html, body{
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
        .mask{
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,.6);
            position: fixed;
        }
        .mask-box{
            width: 80%;
            background: #fff;
            margin: 0 auto;
            position: absolute;
            top: 50%;
            max-width: 600px;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 16px;
            text-align: center;
            border-radius:10px;
            box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.1) inset;
        }
        .mask-box p{
            font-size: 14px;
            padding: 20px;
            margin: 0;
        }
        .mask-box .btn-box{
            display: flex;
            justify-content: space-between;
        }
        .mask-box .btn-box button{
            flex: 1;
            border: none;
            border-top: 1px solid #ddd;
            height: 50px;
            line-height: 50px;

            font-size: 14px;
            background: #2a68c9;
            color: #fff;
            border-bottom-left-radius:10px;
            border-bottom-right-radius:10px;
            box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.1) inset;
        }
        .mask-box .btn-box button:nth-child(2){
            border-left: 1px solid #ddd;
        }
    </style>
<div class="mask">
    <div class="mask-box">
        <p>栏目未开启</p>
        <div class="btn-box">
            <button class="_closeLayer">确定</button>
        </div>
    </div>
</div>
<script>
    window.onload = function(){
        var btn = document.getElementsByClassName('_closeLayer')[0];
        btn.onclick = function(){
            window.location.href="/";
        }
    }
</script>
</body>
</html>