js判断年份是否是闰年代码

代码语言:html

所属分类:其他

代码描述:js判断年份是否是闰年代码,通过加减来增加减少年份数字。

代码标签: js 判断 年份 是否 闰年 代码

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

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

<head>
 
<meta charset="UTF-8">

 
 
 
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Nabla&amp;display=swap'>
 
<style>
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');
body {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
        overflow-y: hidden;
        background-color: rgb(201, 242, 177);
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
        opacity: 0;
}

.container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
}
.inputBox {
        padding: 10px;
        box-shadow: 0 0 30px #99999955;
        border-radius: 10px;
        display: flex;
}
.changersBox {
        display: flex;
        gap: 5px;
        flex-direction: column;
}

#inputYear {
        font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
        font-size: 10rem;
        border: none;
        width: 25rem;
        background: transparent;
}
#inputYear:focus {
        border: none;
        outline: none;
}
#up {
        font-family: "DM Serif Display", serif;
        font-size: 5rem;
        padding-right: 10px;
        padding-left: 10px;
        background-color: rgba(255,255,255,0.1);
        text-align: center;
        cursor: pointer;
        user-select: none;
        filter: drop-shadow(10px 10px 4px #000000aa);
}
#up:hover{
        filter: drop-shadow(0px 0px 4px #000000aa);
}
#down {
        font-family: "DM Serif Display", serif;
        font-size: 5rem;
        padding-right: 10px;
        padding-left: 10px;
        background-color: rgba(255,255,255,0.1);
        text-align: center;
        cursor: pointer;
        user-select: none;
        filter: drop-shadow(10px 10px 4px #000000aa);
}
#down:hover{
        filter: drop-shadow(0px 0px 4px #000000aa);
}
#output {
        font-size: 5rem;
        max-width: 95vw;
}

.transformHolder {
        font-family: "DM Serif Display", serif;
        font-size: 3rem;
        height: 50px;
        width: 50px;
        background: rgba(100, 200, 100,0.3);
        text-align: center;
        display: flex;
        a.........完整代码请登录后点击上方下载按钮下载查看

网友评论0