css实现checkbox美化开关效果代码

代码语言:html

所属分类:表单美化

代码描述:css实现checkbox美化开关效果代码

代码标签: 美化 开关 效果

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


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

<head>

  <meta charset="UTF-8">
  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Oswald:700'>

  
<style>
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #CCCCCC;
}
body span.switcher {
  position: relative;
  width: 200px;
  height: 50px;
  border-radius: 25px;
  margin: 20px 0;
}
body span.switcher input {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  position: relative;
  wid.........完整代码请登录后点击上方下载按钮下载查看

网友评论0