js实现古老转盘显示时间日期代码
代码语言:html
所属分类:其他
代码描述:js实现古老转盘显示时间日期代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.cdnfonts.com/css/isidora-soft-alt");
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: "Isidora Soft Alt", sans-serif;
background: linear-gradient(37deg, #a44169, #bc7a51);
color: #fff;
padding-top: 20px;
}
*,
*::before,
*::after {
padding: 0;
margin: 0 auto;
box-sizing: border-box;
}
.demo {
position: relative;
max-height: 460px;
overflow: hidden;
--size: 560px;
@media screen and (max-width: 600px) {
max-height: 240px;
--size: 320px;
}
}
label {
position: absolute;
top: 0;
left: 0;
line-height: 40px;
height: 100%;
width: 100%;
padding: 6px 32px 6px 12px;
vertical-align: middle;
z-index: 1;
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
border-radius: 40px;
}
input {
display: block;
appearance: none;
border: none;
color: transparent;
width: 122px;
height: 40px;
line-height: 40px;
cursor: pointer;
z-index: 2;
user-select: none;
position: rel.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0