Bootstrap自适应商品活动介绍单页布局效果
代码语言:html
所属分类:响应式
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css">
<style>
body{
background-image: url();
}
.imgJumbotron{
background-image: url('http://repo.bfw.wiki/bfwrepo/image/5e4b4000794db.png');
background-size: cover ;
-moz-background-size: cover;
-o-background-size: cover;
background-repeat: no-repeat;
text-align: center;
padding-top: 300px;
margin-top: 60px;
}
.myColor{
background-color: #6b4f9a;
}
.myBorder{
border: 1px solid #6b4f9a;
}
.myCardColor{
background-color: #a299c5;
}
.myCardHeader{
font-size: 1.5rem;
font-weight: 500;
line-height: 1.2;
}
.mySize{
width: 210px;
height: 131px;
}
p{
font-size: 19px;
font-family: 'Raleway', sans-serif;
}
.myDisplay{
font-size: 5.5rem;
font-weight: 500;
line-height: 1.2;
}
@media only screen and ( max-width : 768px) {
.imgJumbotron{
background-image: url('http://repo.bfw.wiki/bfwrepo/image/5e4b3fd64359e.png');
}
.myDisplay{
font-size: 2.5rem !important;
font-weight: 600 !important;
line-height: 0.5 !important;
}
}
.step-number{
position: absolute;
top: 40px;
background-color: #a299c5;
width: 55px;
height: 55px;
border-radius: 50%;
padding: 8px;
border: 1px solid #6b4f9a;
color: white;
text-align: center;
font: 32px Arial, sans-serif;
}
.step-numberText{
margin-left: 80px;
}
img{
border-radius: 8px;
border: 2px solid #a299c5;
padding: 5px;
}
#contacts{
display: flex;
align-items: center;
justify-content: center;
}
#video{
margin-top: 50px;
}
#info {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
height: 200px;
margin-top: 50px;
}
#info .........完整代码请登录后点击上方下载按钮下载查看
网友评论0