css实现带图文的checkbox多选框美化效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现带图文的checkbox多选框美化效果代码

代码标签: css 图文 checkbox 多选框 美化

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

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

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

  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Moderustic:wght@400&family=Playfair+Display:wght@600&display=swap");
* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f9f1e8;
  font-family: "Moderustic", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

section {
  padding-block: min(20vh, 3.5rem);
  width: calc(min(70rem, 90%));
  margin-inline: auto;
  color: #111;
}
section h2 {
  letter-spacing: 0.025em;
  font-size: 2.6rem;
  line-height: 1.1;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
@media screen and (min-width: 53rem) {
  section .........完整代码请登录后点击上方下载按钮下载查看

网友评论0