* { margin:0px; padding:0px; border:0px; } .box_fixed { display:none; position:fixed; top:0px; left:0px; width:100%; height:100%; z-index:999; background-color:rgba(0,0,0,0.6); } .box_fixed_box { display:block; width:70%; height:220px; background-color:#ffffff; border-radius:2px; margin:auto; margin-top:calc((100vh - 220px)/2); } .box_fixed_box h4 { height:50px; line-height:50px; font-size:18px; text-align:center; padding-top:10px; } .box_fixed_box span { display:block; height:99px; line-height:30px; font-size:16px; padding:0px 20px; color:#8a8a8a; } .box_fixed_box div { height:60px; line-height:60px; text-align:center; font-size:15px; color:#57dd57; border-top:1px solid #eeeeee; }
弹窗直接调用 tc(“提示内容”) 即可显示效果,修改css即可按照个人的需求修改!