if ($.PublicIsMobile($(window).width()))
{
var layerInitWidth = $("#layui-layer" + ly_dtxm).width();
var layerInitHeight = $("#layui-layer" + ly_dtxm).height();

var docWidth = $(document).width();
var docHeight = $(document).height();
var minWidth = layerInitWidth > docWidth ? docWidth : layerInitWidth;
var minHeight = layerInitHeight > docHeight ? docHeight : layerInitHeight;
parent.layer.style(ly_dtxm, {
//top: 0,
width: minWidth,
height: 20
});
}
else
{
var layerInitWidth = $("#layui-layer" + ly_dtxm).width();
var layerInitHeight = $("#layui-layer" + ly_dtxm).height();
parent.layer.style(ly_dtxm, {
//top: 0,
width: layerInitWidth,
height: layerInitHeight
});
}

相关文章:

  • 2022-01-10
  • 2022-12-23
  • 2021-07-19
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案