Welcome 微信登录

首页 / 脚本样式 / JavaScript / Layer打开窗口示例

Layer打开窗口示例


 

//页面层

 

layer.open({

  type: 1,

  skin: 'layui-layer-rim', //加上边框

  area: ['420px', '240px'], //宽高

  content: 'html内容'

});

 

 

//自定页

 

layer.open({

  type: 1,

  skin: 'layui-layer-demo', //样式类名

  closeBtn: 0, //不显示关闭按钮

  anim: 2,

  shadeClose: true, //开启遮罩关闭

  content: '内容'

});

 

//...

该文章为易网时代-编程资源站会员专属文章,请先登录后再进行查看。