控制layui弹框最小值

var layerIndex;

success:function(layero,index){

layerIndex=index;

}

resizing:function(layero){

            var layerInitWidth=$("#layui-layer"+layerIndex).width();

            var layerInitHeight=$("#layui-layer"+layerIndex).height();

            if(layerInitWidth<600){

             layer.style(layerIndex,{

                 top:0,

                width:600,//设置最小宽度

                height:500,//设置最小高度

               });

           }

}

猜你喜欢

转载自blog.csdn.net/hss0123456789/article/details/86542221