下拉菜单白天夜晚切换效果
代码语言:html
所属分类:菜单导航
代码描述:下拉菜单白天夜晚切换效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/unicons.css'>
<style>
/* Please ❤ this if you like it! */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
*,
*::before,
*::after {
box-sizing: border-box;
}
body{
font-family: 'Roboto', sans-serif;
font-weight: 500;
font-size: 15px;
line-height: 1.4;
color: #fff;
background-color: #1f2029;
overflow-x: hidden;
background-position: center;
background-repeat: repeat;
background-size: 4%;
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-pack: center;
justify-content: center;
padding-top: 100px;
padding-bottom: 300px;
}
.sec-center {
position: relative;
max-width: 100%;
text-align: center;
z-index: 200;
}
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked){
position: absolute;
left: -9999px;
opacity: 0;
pointer-events: none;
}
.dark-light:checked + label,
.dark-light:not(:checked) + label{
position: fixed;
top: 40px;
right: 40px;
z-index: 20000;
display: block;
border-radius: 50%;
width: 46px;
height: 46px;
cursor: pointer;
tran.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0