css布局显示有一个相册
代码语言:html
所属分类:布局界面
代码描述:css布局显示有一个相册
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap");
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
background: #1d3557;
font-family: "Roboto", sans-serif;
height: 100vh;
display: flex;
}
ul {
list-style: none;
}
.hero-container {
background: #fff;
width: 800px;
max-height: 100%;
margin: auto;
border-radius: 10px;
display: flex;
position: relative;
}
.navbar-container {
width: 90px;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.navbar__items-list {
height: 370px;
border-right: 1px solid #dedede;
margin-top: 30px;
}
.navbar__item {
display: flex;
align-items: center;
width: 90px;
padding: 0 30px;
margin: 30px 0;
}
.navbar__item.logo {
fill: #6d8df0;
margin-top: 0;
margin-bottom: 60px;
}
.navbar__item:hover:not(.logo) svg {
fill: #6d8df0;
}
.navbar__item a:focus svg {
fill: #6d8df0;
}
.navbar__item:hover:not(.logo) {
border-right: 3px solid #6d8df0;
}
.navbar__item:not(.logo) svg {
fill: #dedede;
}
.navbar__user-.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0