css+js实现中性tab选项卡效果代码
代码语言:html
所属分类:选项卡
代码描述:css+js实现中性tab选项卡效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
*/
@import url(https://fonts.googleapis.com/css?family=Nunito+Sans);
/* RESET */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* STYLING */
.container {
display: flex;
height: 100vh;
background-color: #f4f4f4;
color: #a2a2a2;
font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
}
.darkmode .container {
background-color: #1A1B1F;
color: #8a8a8a;
}
.tabs-container {
width: 540px;
max-width: 620px;
min-width: 420px;
margin: auto;
}
/* Style the tabs */
.tabs {
margin-bottom: 28px;
display: flex;
justify-content: space-between;
}
.tabs a {
cursor: pointer;
padding: 12px 24px;
width: 120px;
text-align: center;
font-weight: bold;
border-radius: 18px;
transition: background 0.1s, color 0.1s;
background: linear-gradient(145deg, #ffffff, #dcdcdc);
box-shadow: .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0