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{
        fo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0