代码如下
<dialog open id="alertBox" style="display:none;background-color:#f2f2f2;width:250px;height:90px;position: absolute;border: 1px lightblue solid;padding:15px 20px;cursor:default">
<div style="width:100%;margin:auto">
<p style="font-size:1.3em;line-height: 70%;font-weight:500">提示</p>
<p style="line-height: 100%">确定要删除吗?</p>
<button style="text-align: center;background-color: #bbb;width:49%;border: none;float:left " onclick="">是</button>
<button style="text-align: center;background-color: #bbb;width:49%;border: none;float:right" onclick="$('#alertBox').slideUp(100);">否</button>
</div>
</dialog>