LAYUI 弹出窗口
按钮:
<button type="button" class="layui-btn layui-btn layui-btn-sm layui-btn-primary" onclick="add()"><i class="layui-icon layui-icon-add-1"></i> 添加</button>
layui代码:
<script> layui.use(['layer'],function(){ $ = layui.jquery; }) function add(){ layer.open({ type: 2, title:"添加导航", skin: 'layui-layer-rim', //加上边框 area: ['450px', '300px'], //宽高 content: '/index.php/bews/bew/menuadd' }) } </script>