js实现一款华为太空手表时钟效果代码

代码语言:html

所属分类:其他

代码描述:js实现一款华为太空手表时钟效果代码,显示了天气、日期、健康、步行、时间等信息。

代码标签: 华为 太空 手表 时钟

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        .jun-meter {
    position: relative;
    width: 640px;
    height: 640px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/ring.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    margin: auto;
    margin-top: 7%;
}

.jun-time-rect {
    position: absolute;
    width: 30px;
    height: 80px;
    left: 275px;
    top: 180px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/rect.svg");
    background-size: 40px 40px;
}

.jun-time-h-h {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 140px;
    top: 170px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/8.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.jun-time-h-l {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 200px;
    top: 170px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/8.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.jun-time-m-h {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 290px;
    top: 170px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/8.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.jun-time-m-l {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 350px;
    top: 170px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/8.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.jun-time-s-h {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 430px;
    top: 208px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/8.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.jun-time-s-l {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 470px;
    top: 208px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/8.svg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.jun-calendar-date {
    position: absolute;
    width: 120px;
    height: 30px;
    left: 460px;
    top: 310px;
    line-height: 30px;
    font-size: 20px;
    text-align: center;
}

.jun-date {
    position: absolute;
    width: 120px;
    height: 30px;
    left: 460px;
    top: 345px;
    line-height: 30px;
    font-size: 20px;
    text-align: center;
}

.jun-human{
    position: absolute;
    width: 150px;
    height: 150px;
    left: 250px;
    top: 280px;
    background-image: url("//repo.bfw.wiki/bfwrepo/images/bg/watch/human.gif");
    background-repeat: no-repeat;
    background-size: 100%;
}

    </style>
</head>

<body>
    <div class="jun-meter">
        <div class="jun-time-h-h" id="hh"></div>
        <div class="jun-time-h-l" id="hl"></div>
        <div class="jun-time-rect"></div>
        <div class="jun-human"></div>
        <div class="jun-time-m-h" id=.........完整代码请登录后点击上方下载按钮下载查看

网友评论0