栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > Web开发 > Html/CSS > CSS教程

初学js 自制表盘时钟很简单

CSS教程 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

初学js 自制表盘时钟很简单

学习前端没一周,用简单的HTML 和css js 做的





clock


* {
    margin: 0;
    padding: 0;
}
#wrap {
    position: relative;
    width: 300px;
    height: 300px;
    background: #09F;
    text-align: center;
    margin: 0 auto;
    border-radius: 150px;
}
.a1 {
    display: block;
    width: 300px;
    height: 5px;
    transform: rotate(0deg);
    position: absolute;
    top: 147px;
    left: 0px;
}
.left {
    display: block;
    float: left;
    width: 20px;
    height: 5px;
    background: #9F3;
}
.right {
    display: block;
    float: right;
    width: 20px;
    height: 5px;
    background: #9F3;
}
.po {
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    z-index:99;
}
#mz {
    height: 300px;
    width: 5px;
    transform: rotate(0deg);
    position: absolute;
    top: 0px;
    left: 149px;
    z-index:80;

}
.mz {
    width: 5px;
    height:155px;
    margin:  45px 0 100px 0;
    background: #60F;
}
#fz {
    width: 7px;
    height: 300px;
    transform: rotate(0deg);
    position: absolute;
    top: 0px;
    left: 148px;
    z-index:10;
}
.fz {
    width: 7px;
    height: 135px;
    margin:  55px 0 110px 0;
    background:#00F;
}
#sz {
    width: 10px;
    height: 300px;
    transform: rotate(0deg);
    position: absolute;
    top: 0px;
    left: 145px;
    z-index:5;
}
.sz {
    width: 10px;
    height: 110px;
    margin: 70px 0 120px 0;
    background:#9F9;
}


 
  
  

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/243314.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号