css布局实现多彩跑道时间轴效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现多彩跑道时间轴效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>css3跑道式时间轴设计效果</title>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css">
<style type="text/css">
body, html {
font-size: 100%;
padding: 0;
margin: 0;
}
/* Reset */
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
body {
background: #494A5F;
color: #D5D6E2;
font-weight: 500;
font-size: 1.05em;
font-family: "Microsoft YaHei","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif;
}
.main-timeline {
font-family: 'Roboto', sans-serif;
padding: 20px 0;
position: relative;
}
.main-timeline:before,
.main-timeline:after {
content: '';
height: 40px;
width: 40px;
background-color: #e7e7e7;
border-radius: 50%;
border: 10px solid #303334;
transform: translateX(-50%);
position: absolute;
left: 50%;
top: -15px;
z-index: 2;
}
.main-timeline:after {
top: auto;
bottom: 15px;
}
.main-timeline .timeline {
padding: 35px 0;
margin-top: -30px;
position: relative;
z-index: 1;
}
.main-timeline .timeline:before,
.main-timeline .timeline:after {
content: '';
height: 100%;
width: 50%;
border-radius: 100px 0 0 100px;
border: 15px solid #46B2BC;
border-right: none;
position: absolute.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0