div+css实现自适应响应式目录大纲排列效果代码
代码语言:html
所属分类:响应式
代码描述: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/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
body {
background: #fff;
font-family: "Nunito", sans-serif;
line-height: 1.4;
padding: 3em 2em;
}
h1 {
font-weight: 800;
font-size: 40px;
text-transform: uppercase;
}
.item {
margin: 1em 0;
}
.item__number {
display: inline-block;
padding: 15px;
font-size: 34px;
font-weight: 700;
width: 45px;
height: 45px;
color: #fff;
border-radius: 50%;
margin-right: 10px;
text-align: center;
z-index: 2;
}
.item__topic {
padding-left: 80px;
position: relative;
}
.item__topic:before {
content: "";
position: absolute;
width: 5px;
height: calc(100% + 1em);
top: 0;
left: 35px;
}
.item__topic__title {
font-weight: 700;
font-size: 24px;
}
.item__topic__author {
font-size: 18px;
color: #999;
}
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0