vue实现电子时钟效果代码
代码语言:html
所属分类:其他
代码描述:vue实现电子时钟效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Share+Tech+Mono'> <style> html, body { height: 100%; } body { background: #0f3854; background: radial-gradient(ellipse at center, #0a2e38 0%, #000000 70%); background-size: 100%; } p { margin: 0; padding: 0; } #clock { font-family: 'Share Tech Mono', monospace; color: #ffffff; text-align: center; position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); color: #daf6ff; text-shadow: 0 0 20px #0aafe6, 0 0 20px rgba(10, 175, 230, 0); } #clock .time { letter-spacing: 0.05em; font-size: 80px; padding: 5px 0; } #clock .date { letter-spacing: 0.1em; font-size: 24px; } #clock .text { letter-spacing: 0.1em; font-size: 12px; padding: 20px 0 0; } </style> </head> <body translate="no" > <div id="clock"> <p class="date">{{ date }}</p> <p .........完整代码请登录后点击上方下载按钮下载查看
网友评论0