1,定义layer背景样式

        /* 设置layer背景透明 */
        .shadows{background-color: transparent !important;box-shadow: 0 0 0 rgba(0,0,0,0) !important;}

 

2,layer中使用

function sen10hot1() {
    vidhig = document.body.offsetHeight * 0.95 + "px";
    vidwid = document.body.offsetHeight * 0.95 / 1.777 + "px";
    mylay = layer.open({
        type: 2,
        title: false,
        zIndex: 1000,
        closeBtn: 0,
        shade: true,
        shade: [0.5],
        shadeClose: true,
        area: [vidwid, vidhig],
        skin: 'shadows',
        content: "hotdemo/HallSwp/index.html"
    });
    // 关闭layer
    // cloLayer.style.display = "block";
};

 

相关文章:

  • 2021-08-28
  • 2021-11-06
  • 2022-01-15
  • 2022-12-23
  • 2021-12-27
  • 2021-11-09
  • 2021-06-13
  • 2021-10-06
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2021-06-12
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案