<dialog open>
<p>這是 html 的 dialog!!</p>
</dialog>
dialog{
border: none;
box-shadow: 0 2px 6px #ccc;
border-radius: 10px;
}
dialog::backdrop {
background-color: rgba(0, 0, 0, 0.1);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.