css实现咖啡开关切换checkbox效果代码

代码语言:html

所属分类:其他

代码描述:css实现咖啡开关切换checkbox效果代码

代码标签: css 咖啡 开关 切换 checkbox

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

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

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

  
  
  
<style>
body {
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  height: 100vh;
  background: #963;
}

.coffee {
  font-size: 0.75rem;
  appearance: none;
  position: relative;
  width: 20em;
  height: 9em;
  background: #eee8;
  border-radius: 20em;
  
  &::before {
    content: "";
    width: 7em;
    aspect-ra.........完整代码请登录后点击上方下载按钮下载查看

网友评论0