“User:Chinanjzyq”的版本间的差异
Chinanjzyq(讨论 | 贡献) (建立内容为“<!DOCTYPE html> <html> <head> <title>科技感页面</title> <style> body { margin: 0; padding: 0; background-color: #000; overf…”的新页面) 标签:移动版编辑 移动网页编辑 |
Chinanjzyq(讨论 | 贡献) 标签:移动版编辑 移动网页编辑 |
||
第2行: | 第2行: | ||
<html> | <html> | ||
<head> | <head> | ||
− | <title> | + | <title>ZYQ</title> |
<style> | <style> | ||
body { | body { | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
− | background-color: # | + | display: flex; |
+ | justify-content: center; | ||
+ | align-items: center; | ||
+ | height: 100vh; | ||
+ | background-color: #222; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
第17行: | 第21行: | ||
height: 100%; | height: 100%; | ||
background-image: url('data:image/png;base64,iVBORw0KGg'); | background-image: url('data:image/png;base64,iVBORw0KGg'); | ||
− | background-size: | + | background-size: 200px; |
background-repeat: repeat; | background-repeat: repeat; | ||
− | animation: pattern 10s infinite; | + | animation: pattern 10s linear infinite; |
} | } | ||
@keyframes pattern { | @keyframes pattern { | ||
0% { | 0% { | ||
− | background-position: 0 0, | + | background-position: 0 0, 200px 0, 0 200px, 200px 200px; |
− | |||
− | |||
− | |||
} | } | ||
100% { | 100% { | ||
− | background-position: 0 0, | + | background-position: 400px 0, 0 0, 200px 0, 0 200px; |
} | } | ||
} | } | ||
.text { | .text { | ||
− | |||
− | |||
− | |||
− | |||
color: #fff; | color: #fff; | ||
font-size: 48px; | font-size: 48px; | ||
text-align: center; | text-align: center; | ||
− | + | margin-bottom: 20px; | |
} | } | ||
</style> | </style> |
2023年10月15日 (日) 05:40的版本
<!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>
</body> </html>