Bootstrap作业

本文记录了作者使用Bootstrap构建一个网页的过程,从导航条、banner、列表到底部信息部分,尽管初看简单,实则花费了不少时间。通过这个练习,作者旨在回顾并提升自己的Bootstrap布局能力。
摘要由CSDN通过智能技术生成

模仿的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
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值