Bootstrap实战---成长平台(栅格布局)

本文介绍了如何使用Bootstrap实现成长平台的响应式栅格布局,展示了如何组织内容和图片,以适应不同屏幕尺寸。通过实例演示了如何创建列、行和圆角卡片,配合Swiper插件和自定义CSS。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • Bootstrap实战—成长平台(栅格布局)

  • 目标布局
    在这里插入图片描述

  • 我的布局:不含JS和CSS特效
    在这里插入图片描述

  • 我的代码

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>融职教育</title>
    <!--移动设备优先-->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!--引入Bootstrap CSS-->
    <link rel="stylesheet" href="css/bootstrap.css">

    <!-- 引入CSS Swiper插件 -->
    <link rel="stylesheet" href="css/swiper.min.css">

    <!--引入手风琴CSS-->
    <link rel="stylesheet" href="css/style.css">

    <!--引入 Dplayer css-->
    <link rel="stylesheet" href="css/DPlayer.min.css">



</head>
<body>



    <!-- 成长平台开始 -->
<section class="B-area mt-3 d-none d-lg-flex">


    <div class="container">
        <div class="row">
            <div class="col-12">
                <div>
                    <h4 class="d-inline-block">成长平台</h4><small class="text-muted pl-2">浸入到开发组中实习,在工作中学技术涨经验</small>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-1 rounded text-white text-center m-2 p-1 " style="background: url('images/h1.jpg');">
                <small>按职业划分<br>技术模块<br>【1】</small>
            </div>
            <img src="images/jtr.png" alt="" class="mt-5" style="height: 15px;">

            <div class="col-1 rounded text-white text-center m-2 p-1" style="background: url('images/h2.jpg');">
                <small>参与项目<br>模块开发<br>【1】</small>
            </div>
            <img src="images/jtr.png" alt="" class="mt-5"  style="height: 15px;">

            <div class="col-1 rounded text-white text-center m-2 p-1 pt-3" style="background: url('images/h3.jpg');">
                <small style="font-size: 14px;font-weight: 900;">... ...</small>
            </div>
            <img src="images/jtr.png" alt="" class="mt-5"  style="height: 15px;">

            <div class="col-1 rounded text-white text-center m-2 p-1" style="background: url('images/h1.jpg');">
                <small>按职业划分<br>技术模块<br>【N】</small>
            </div>
            <img src="images/jtr.png" alt=""  class="mt-5" style="height: 15px;">

            <div class="col-1 rounded text-white text-center m-2 p-1" style="background: url('images/h2.jpg');">
                <small>参与项目<br>模块开发<br>【N】</small>
            </div>
            <img src="images/jtr.png" alt="" class="mt-5"  style="height: 15px;">

            <div class="col rounded text-white text-center m-2 p-1 pt-3" style="background: url('images/h2.jpg');">
                <small >【智校云】产品研发部<br>开源项目研发部</small>
            </div>
        </div>

        <div class="row">
            <div class="col-1  text-center mx-1 p-1">
                <img src="images/jts.png" alt="" style="height: 15px;">
                <div class="rounded text-white  mt-1" style="background: url('images/h1.jpg');height: 180px;width: 95px;">
                    <p class="small"><br><br><br><br><br></p>
                </div>
                <img src="images/jts.png" alt="" style="height: 15px;">
                <div class="rounded-circle text-white mt-2" style="background: url('images/h5.jpg');height:80px;width: auto;">
                    <p class="small p-2">入职<br>安排任务<br>指导</p>
                </div>
            </div>

            <div class="col-2 small" >
                <div style="margin-top: 100px;margin-left: 45px" class="w-100">
                    <div>
                        <p class="ml-5">海量学习资源</p>
                        <p class="ml-3">定制学习规划</p>
                        <p class="ml-0">大牛一对一身边指导</p>
                        <p class="ml-3">闯关式学习任务</p>
                        <p class="ml-5">可调解学习节奏</p>
                    </div>
                </div>
            </div>

            <div class="col" style="background:url(images/ldot.png) no-repeat;height: 300px;width: auto;margin-top: 55px;">
                <div class="rounded-circle " style="background: url('images/h1.jpg');height: 250px;width: 250px;margin-left: 20px;">
                    <div class="rounded-circle" style="position:relative; background:white url('images/lmonkey.png') no-repeat center;height: 120px;width: 120px;margin-left: 50px;top:70px;left:20px;"></div>
                </div>
            </div>  

            <div class="col">
                <div class="rounded-circle  " style="background: url('images/h2.jpg');height: 250px;width: 250px;margin-top: 60px;margin-left: -30px; ">
                    <div class="rounded-circle" style="position:relative; background: white url('images/zxy.png') no-repeat center;height: 120px;width: 120px;margin-left: 50px;top:70px;left:20px;">
                    <a href="https://www.lmonkey.com"></a>
                    </div>
                </div>
            </div>

            
            <!--注意图放在背景里面了-->
            <div class="col-2 small" style="position:relative;background:url(images/rdot.png) no-repeat;height: 300px;width: auto;margin-top: 55px;margin-right: 100px;">
                <div style="margin-top: 45px;margin-left: 40px;" class="w-100">
                    <p class="ml-0">浸入真实项目开发组中</p>
                    <p class="ml-2">开发真实商业上线项目</p>
                    <p class="ml-3">技术总监带队一起开发</p>
                    <p class="ml-2">团队合作开发</p>
                    <p class="ml-0">全套技能掌握</p>
                </div>
            </div>


            <div class="col-1  text-center mx-1 p-1">
                <img src="images/jtx.png" alt="" style="height: 15px;">
                <div class="rounded text-white  mt-1" style="background: url('images/h2.jpg');height: 180px;width: 95px;">
                    <p class="small py-5">外包项目<br>开发组<br>人员<br>离岸外包<br>驻场开发</p>
                </div>
                <img src="images/jtx.png" alt="" style="height: 15px;">
                <div class="rounded-circle text-white mt-2" style="background: url('images/h4.jpg');height:80px;width: auto;">
                    <p class="small py-3">就业指导<br>跳槽</p>
                </div>
            </div>
            
        </div>


        <div class="row shadow pt-2 rounded-circle border border-info mt-4"></div>

        
    </div>
</section>
<!-- 成长平台结束 -->



    <!--引入jQuery, 再引入poppper.js 最后再引入Bootstrap.js-->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.bundle.js"></script>


</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值