offset-坐标
offset:'auto' ————默认水平居中弹出
offset:'t' ————上弹出
offset:'100px' ————距离上方100px弹出
offset:'l'————左弹出
offset:'r'————右弹出
offset:'b'————下弹出
offset:'rb'————右下弹出
offset:['100px','50px']————距离上方100px,左边50px弹出
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>弹出层</title>
<link rel="stylesheet" type="text/css" href="layui-v2.7.0-rc5/layui-v2.7.0-rc5/layui/css/layui.css"/>
<script type="text/javascript" src="layui-v2.7.0-rc5/layui-v2.7.0-rc5/layui/layui.js" charset="UTF-8"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
</head>
<body align="center">
<butt