div+css实现自适应响应式多屏多级菜单落地页代码
代码语言:html
所属分类:响应式
代码描述:div+css实现自适应响应式多屏多级菜单落地页代码
代码标签: div css 自适应 响应式 多屏 多级 菜单 落地页 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");
:root {
--hue: 200;
--sat: 5%;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Montserrat", sans-serif;
}
ul {
list-style: none;
}
a {
text-decoration: none;
}
header {
position: sticky;
top: 0px;
background-color: hsl(var(--hue), var(--sat), 98%);
width: 100%;
z-index: 1000;
}
section {
position: relative;
height: calc(100vh - 3rem);
width: 100%;
background: url("//repo.bfw.wiki/bfwrepo/image/634f7204e1e20.png") no-repeat top center/cover;
overflow: hidden;
}
.overlay {
position: absolute;
inset: 0;
background-color: hsl(var(--hue), var(--sat), 58%, 0.5);
}
.content {
position: relative;
display: grid;
place-items: center;
height: 100%;
font-size: clamp(2rem, 10vw + 1rem, 5rem);
color: hsl(var(--hue), var(--sat), 95%);
}
.container {
max-width: 65rem;
padding: 0 2rem;
margin: 0 auto;
display: flex;
position: relative;
}
.logo-container {
flex: 1;
display: flex;
align-items: center;
}
.nav-ctn {
flex: 3;
display: flex;
}
nav {
flex: 2;
}
..........完整代码请登录后点击上方下载按钮下载查看
















网友评论0