第1行: |
第1行: |
− | <!DOCTYPE html>
| + | |
− | <html>
| |
− | <head>
| |
− | <title>ZYQ</title>
| |
− | <style>
| |
− | body {
| |
− | margin: 0;
| |
− | padding: 0;
| |
− | display: flex;
| |
− | justify-content: center;
| |
− | align-items: center;
| |
− | height: 100vh;
| |
− | background-color: #222;
| |
− | overflow: hidden;
| |
− | }
| |
− | .pattern {
| |
− | position: absolute;
| |
− | top: 0;
| |
− | left: 0;
| |
− | width: 100%;
| |
− | height: 100%;
| |
− | background-image: url('data:image/png;base64,iVBORw0KGg');
| |
− | background-size: 200px;
| |
− | background-repeat: repeat;
| |
− | animation: pattern 10s linear infinite;
| |
− | }
| |
− | @keyframes pattern {
| |
− | 0% {
| |
− | background-position: 0 0, 200px 0, 0 200px, 200px 200px;
| |
− | }
| |
− | 100% {
| |
− | background-position: 400px 0, 0 0, 200px 0, 0 200px;
| |
− | }
| |
− | }
| |
− | .text {
| |
− | color: #fff;
| |
− | font-size: 48px;
| |
− | text-align: center;
| |
− | margin-bottom: 20px;
| |
− | }
| |
− | </style>
| |
− | </head>
| |
− | <body>
| |
− | <div class="pattern"></div>
| |
− | <div class="text">ZYQ</div>
| |
− | </body>
| |
− | </html>
| |