div+css日出日落白昼切换按钮checkbox开关代码
代码语言:html
所属分类:布局界面
代码描述:div+css日出日落白昼切换按钮checkbox开关代码
代码标签: div css 日出 日落 白昼 切换 按钮 checkbox 开关 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
<style>
body{
background:black;
padding:200px;
}
.theme-switch {
position: relative;
display: inline-block;
width: 90px;
height: 90px;
cursor: pointer;
border-radius: 50%;
filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
-webkit-tap-highlight-color: transparent;
}
.theme-switch input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.switch-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 50%;
overflow: hidden;
border: 4px solid #ffffff;
box-shadow: inset 0 6px 12px .........完整代码请登录后点击上方下载按钮下载查看















网友评论0