1、居中弹出
$k.msg({content:'居中弹出'});
查看效果
2、左上角弹出
$k.msg({content:'左上角弹出',style:{left:0,top:0}
});
查看效果
3、右下角弹出
$k.msg({content:'右上角弹出',style:{left:'r',top:'b'}
});
查看效果
4、左下角弹出
$k.msg({content:'左下角弹出',style:{left:0,top:'b'}
});
查看效果
5、右上角弹出
$k.msg({content:'右上角弹出',style:{left:'r',top:0}
});
查看效果
6、自定义弹出位置
$k.msg({content:'自定义弹出位置:距左边200px,距上边200px',style:{left:200,top:200}
});
查看效果