css实现中性暗黑和亮色模式时钟效果代码

代码语言:html

所属分类:其他

代码描述:css实现中性暗黑和亮色模式时钟效果代码

代码标签: css中性 暗黑 亮色 模式 时钟

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="Description" content="A Simple Analog Clock">
    <meta name="theme-color" content="#091921">
    <link rel="stylesheet" href="CSS/main.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap');
    
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background: #090909;
        background: #07141b;
    }
    
    
    
    body.light {
        background: #d1dae3;
    }
    
    
    .clock {
        width: 375px;
        height: 375px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: url(//r.........完整代码请登录后点击上方下载按钮下载查看

网友评论0