需求:
1、点击添加弹出模态框;
2、点击编辑弹出模态框,并有默认值;
3、点击删除,删除此行数据。
<!-- jquery模态框 -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.hide{
display:none;
}
.modal{
position:fixed;
left:50%;
top:50%;
width:500px;
height:400px;
margin-left:-200px;
margin-top:-250px;
z-index:10;
background-color:white;
}
.shade{
position:fixed;
left:0;
right:0;
top:0;
bottom:0;
opacity:0.6;
background-color:black;
z-index:9;
}
p{
text-align:center;
}
</style>
</head>
<body>
<input type="button" value="添加">
<div class="modal hide">
<p>地址:<input type="text"></p>
<p>端口:<input type="text"></p>
<p><input type="button" value="取消"></p>