css实现暗黑紫色炫酷滑动式tab标签栏手机底部菜单栏效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现暗黑紫色炫酷滑动式tab标签栏手机底部菜单栏效果代码
代码标签: css 暗黑 紫色 炫酷 滑动式 tab 标签栏 手机 底部 菜单栏
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
:root {
--black: #121212;
--accent: #db74ff;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html,
body {
height: 100%;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
body {
background-color: #212121;
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
nav {
position: relative;
height: 100px;
width: 400px;
/* padding: 0px 10px; */
background-color: var(--black);
border-radius: 8px;
}
.border-effect {
position: absolute;
width: 40px;
left: 30px;
height: 10px;
background-color: var(--accent);
border-radius: 0px 0px 18px 18px;
filter: drop-.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0