css+js实现一个tab选项卡容器效果代码

代码语言:html

所属分类:选项卡

代码描述:css+js实现一个tab选项卡容器效果代码

代码标签: css tab 选项卡 容器

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


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

<head>

  <meta charset="UTF-8">


  
  
<style>
/**
 * Codespud design system
 */
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
/* Base Colors */
:root {
  --base-color: #0f75ae;
  --app-bg-color: #88d2fc;
  --app-text-color: #5a5a5a;
  --container-color: #fafbfc;
  --shadow-style: 0 4px 8px rgba(15, 117, 174, 0.2), 0 8px 16px rgba(15, 117, 174, 0.2);
}

html {
  font-size: 100%;
}

body {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  color: #5a5a5a;
  line-height: 1.75;
  background-color: var(--app-bg-color);
}

p {
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 3rem 0 1.38rem;
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  margin-top: 0;
  font-size: min(10vw, 2.852rem);
}

h2 {
  font-size: min(7vw, 2.441rem);
}

h3 {
  font-size: min(6vw, 1.953rem);
}

code, blockquote {
  background-color: rgba(136, 210, 252, 0.2);
}

blockquote {
  margin: 0 0 0 3px;
  margin-block-end: 0;
  margin-block-start: 0;
  padding: 0.5rem 1rem 0.5rem 2em;
  border-left: 2px solid #88d2fc;
}

figure {
  margin: 0;
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0