模仿的Bootstrap中文网的练习 本以为很简单一个网页 但是必须要用Bootstrap来做硬是做了一下午才搞出来!
记录下来以后回过头来再看看羞辱一下自己!
样式
<style>
* {
list-style: none;
}
html {
font-size: calc(1em + 1vw);
}
a {
text-decoration: none;
}
.self-style {
border-radius: 0px;
margin-bottom: 0px;
}
.container {
position: relative;
z-index: 2;
}
.banner-box {
width: 100%;
padding: 90px 110px;
text-align: center;
background: linear-gradient(45deg, #020031, #6d3353);
box-shadow: inset 0 3px 7px rgba(0, 0, 0, .2), inset 0 -3px 7px rgba(0, 0, 0, .2);
position: relative;
/* margin-top: 52px; */
}
.banner-box::after {
content: '';
background-image: url('./../img/bs-docs-masthead-pattern.png');
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.banner-box h1 {
font-size: 2rem;
font-weight: 700;
color: white;
}
@media (min-width: 576px) {
.banner-box h1 {
font-size: 2rem;
font-weight: 700;
}
}
@media (min-width: 768px) {
.banner-box h1 {
font-size: 2rem;
font-weight: 700;
}
}
@media (min-width: 992px) {
.banner-box h1 {
font-size: 3rem;
font-weight: 700;
}
}
@media (min-width: 1200px) {
.banner-box h1 {
font-size: 4rem;
font-weight: 700;
}
}
.banner-box h2 {
font-size: 30px;
color: white;
}
h1,
h2,
h3 {
margin-top: 20px;
margin-bottom: 15px;
}
.turn a {
margin-top: 20px;
color: #cac2c2;
}
.btn {
margin-top: 30px;
margin-bottom: 15px;
box-shadow: inset 0 -4px