js+css实现炫酷边框的当前日期和时间效果的代码

代码语言:html

所属分类:其他

代码描述:js+css实现炫酷边框的当前日期和时间效果的代码

代码标签: js css 炫酷 边框 当前 日期 时间 效果 代码

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  background-color: #0d0d0d;
  font-family: sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container{
  height: 45%;
  width: 45%;
  display: grid;
  grid-template-rows: 35% 65%;
  align-items: center;
  justify-content: center;
  border: .3rem solid #1a1a1a;
  border-radius: 3rem;
  -webkit-box-reflect: ;
}

h1{
  margin-top: 3rem;
  font-size: 3.5rem;
  text-align: center;
  padding: 0 1rem;
  border-bottom: 2px solid #1a1a1a;
  background: linear-gradient(90deg , #00dbde, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-c.........完整代码请登录后点击上方下载按钮下载查看

网友评论0