css+js实现找工作tab选项卡列表切换代码
代码语言:html
所属分类:选项卡
代码描述:css+js实现找工作tab选项卡列表切换代码
代码标签: css js 找工作 tab 选项卡 列表 切换 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mulish&display=swap" rel="stylesheet" type='text/css'>
<style>
:root {
--background: white;
--tabs-bg: white;
--border: #DEE2E1;
--text-color: #333531;
--primary: #0D5E77;
--scrollbar-bg: #EDF7F9;
--scrollbar-thumb: #0D5E7740;
--job-bg: #EDF7F9;
--link-color: white;
}
body {
font-family: Mulish, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: var(--text-color);
background: var(--background);
user-select: none;
padding: 1rem;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.job-board {
padding: 1.25rem;
width: 100%;
max-width: 40rem;
border-radius: 1.5rem;
background: var(--job-bg);
border: 1px solid var(--border);
}
.job-board__top {
display: flex;
justify-content: start;
align-items: center;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
}
.job-board__headline {
width: 100%;
display: flex;
gap: 0.5rem;
font-weight: 700;
align-items: center;
}
.job-board__headline svg {
color: var(--text-color);
height: 2rem;
width: 2rem;
}
.job-board__description {
width: 100%;
}
header {
position: relative;
}
.tab-content {
display: none;
}
.tab-content--active {
display: flex;
flex-direction: column;
gap: 0.75rem;
height: 30rem;
padding-right: 0.5rem;
overflow-y: scroll;
}
*::-webkit-scrollbar {
width: 0.5rem;
height: 0.5rem;
background: var(--scrollbar-bg);
border-radius: 9.99rem;
}
*::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
transition: all 0.2s ease-in-out;
border-radius: 9.99rem;
}
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0