获取父窗体尺寸:
var parent_index = parent.layer.getFrameIndex(window.name), // layui, 父窗体
parent_width = parent.document.documentElement.clientWidth,
parent_height = parent.document.documentElement.clientHeight
监听父窗体尺寸
parent.window.onresize = function () {
PARENT_W = parent.document.documentElement.scrollWidth-200;
PARENT_H = parent.document.documentElement.scrollHeight;
SHRINK_W = 120;
isShrink = !isShrink;
popResize(this);
}
layui-table修改选中行颜色:
obj.tr.addClass('layui-bg-red').siblings().removeClass('layui-bg-red');