body { margin:0; padding:0; font-family:sans-serif; } div { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; width:300px; height:100px; border:10px solid lightcoral; border-radius:20px; background:lightslategray; } p { width:200px; height:50px; font-size:20px; line-height:50px; margin:10px auto; text-align:center; border:1px solid lightskyblue; border-radius:20px; color:lightcyan; font-weight:700; }
更新时间:2020-03-08 11:04:15