js+css实现蓝色大气数字指针时钟显示时间代码
代码语言:html
所属分类:其他
代码描述:js+css实现蓝色大气数字指针时钟显示时间代码
代码标签: js css 蓝色 大气 数字 指针 时钟 显示 时间 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700"); * { transition: color .4s, background .4s, border .4s; transition-timing-function: ease-in; } body { background: #F9FBE7; } body.dark { background: #242236; } .container { display: flex; height: 100vh; } .clock { position: relative; margin: auto; width: 100px; height: 260px; } .box { color: #7986CB; background: #EDE7F6; font-size: 20px; text-align: center; font-family: Lato, sans-serif; border: 2px solid #D1C4E9; border-radius: 4px; } .dark .box { color: #90CAF9; background: #4527A0; border: 2px solid #673AB7; } .date { width: 120px; padding: 5px 8px; position: absolute; top: -65px; left: 45px; } .clock-face { position: absolute; height: 220px; width: 220px; background: #EDE7F6; border-radius: 50%; border: 4px solid #D1C4E9; } .dark .clock-face { background: #4527A0; border: 4px solid #673AB7; } .marker { position: absolute; width: 10px; height: 10px; background: #7986CB; border-radius: 50%; } .dark .marker { background: #90CAF9; } .twelve {.........完整代码请登录后点击上方下载按钮下载查看
网友评论0