1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<!DOCTYPE html> <style> dialog { background-color: green; height: 50px; width: 50px; border: none; padding: 0; margin: 0; position: absolute; top: 100px; left: 100px; } </style> <dialog></dialog> <script> document.querySelector('dialog').showModal(); </script>