请输入图片描述<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
<title>dialog</title>
<style type="text/css">
.dialog-mask{ background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0;
bottom: 0;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: 1000; }
.dialog-panel{
background-color: #ffffff;
border-radius: 3px;
left: 50%;
max-width: 300px;
overflow: hidden;
position: fixed;
text-align: center;
top: 50%;
transform: translate(-50%, -50%);
width: 80%;
z-index: 5000;
}
</style>
</head>
<body>
<div id="" title="为程序猿准备的ID" >
<div class="dialog-mask"></div>
<div class="dialog-panel">
<div class="weui-dialog__bd">弹窗内容,告知当前状态、信息和解决方法,
描述文字尽量控制在三行内弹窗内容 </div>
</div>
</div>
</body>
</html>