html代码|弹出图层/框架

时间:7个月前   阅读:159
<a target="_blank" class="btn btn-danger" id="apprj"rel="nofollow"><i class="fa fa-cloud-download"></i> APP下载</a>
 <a target="_blank" class="btn btn-danger" id="zshao"rel="nofollow"><i class="fa fa-cloud-download"></i> APP下载</a>
 <!-- 层 -->
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
        <script src="https://cdn.jsdelivr.net/gh/kaygb/kaygb@master/layer/layer.js"></script> <!-- 层 -->
<script>
        //弹出一个页面层
        $('#zshao').on('click', function() {
            layer.open({
                type: 2,
                title: 'Zshao网络',
                shadeClose: true,
                shade: false,
                maxmin: true, //开启最大化最小化按钮
                area: ['80%', '100%'],
                content: '//zshao.vip/'
            });
        });
        $('#apprj').on('click', function() {
            layer.open({
                type: 2,
                title: '专属APP',
                shadeClose: true,
                shade: false,
                maxmin: true, //开启最大化最小化按钮
                area: ['80%', '50%'],
                content: 'https://wwa.lanzous.com/b0eq3tkha'
            });
        });
    </script>


上一篇:css代码|css隐藏某个元素标签

下一篇:php代码|php抓取网页特定div区块

网友评论