时间 自适应浏览器高度layer

layer.open({
type: 2,
title: ‘收件箱’,
maxmin: true,
shadeClose: false, //点击遮罩关闭层
shade: 0.6,
full: function () {
$(".layui-layer-content").css(“height”, “100%”);
$(“iframe”).css(“height”, “94%”);
},
restore: function () {
$(".layui-layer-content").css(“height”, “100%”);
$(“iframe”).css(“height”, “94%”);
},
area: [‘80%’, ‘80%’],
content: '…/…/,
end: function () {
var Y_Mail_Count = document.getElementById("");
var S_Mail_Li = document.getElementById("" + + “”);

                var Mail = document.getElementById("");
                var Count = document.getElementById("");
                var tab = document.getElementById("");

                if (parseInt(Y_Mail_Count.innerHTML) > 0) {
                    Y_Mail_Count.innerHTML = parseInt(Y_Mail_Count.innerHTML) - 1;
                    S_Mail_Li.remove();//删除li
                    if (tab.getElementsByTagName('li').length <= 0) {
                        Mail.style.height = "0px";
                    } else { }
                }
            }
        });

//时间格式转换
DateTime dt = DateTime.Parse(Send_Time);
string ssssssss = dt.GetDateTimeFormats(‘f’)[0].ToString();

猜你喜欢

转载自blog.csdn.net/weixin_45062076/article/details/107085096