请老师帮忙检查下这部分代码,谢谢

来源:4-8 自由编程

慕码人0290569

2021-09-17 12:59:18

==HTML==

 <section>

        <div class="about">

            <h2>ABOUT</h2>

            <div class="box"></div>

            <p class="para1">Lorem Ipsum is simply dummy text of the printing and typesetting industry.Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p>

        </div>

        <div class="about-content">

            <div class="ab-title">

                <h2>A WORD</h2>

                <h2>ABOUT US</h2>

            </div>

            <img src="sucai/bb3.jpg" alt="">

            <div class="right">

                <div class="right-top">

                    <h2>7000</h2>

                    <div class="box1 common"></div>

                    <p class=" para2 para">Students</p>

                </div>

                <div class="right-bot">

                    <h2>600</h2>

                    <div class="box2 common"></div>

                    <p class="para3 para">Faculty</p>

                </div>

            </div>

            <div class="left-words">

                <p>Praesent dignissim viverra est,sed bibendum ligula congue non. Sed ac nisl et felis gravida commodo?Suspendisse eget ullamcorper ipsum.Suspendisse diam amet.</p>             

                <button>EXPLORE</button>

            </div>

        </div>

    </section>


==CSS==

section {

    width100%;

}

section .about {

    width1200px;

    margin0 auto;

}

section .about h2 {

    padding-top30px;

    font-size30px;

    text-align: center;

}

section .about .box {

    width60px;

    height3px;

    background: #07cbc9;

    margin10px auto;

}

section .about .para1 {

    text-align: center;

    color: gray;

    font-size14px;

    width500px;

    margin0 auto;

}

section .about-content {

    width1200px;

    height434px;

    margin0 auto;

    padding-top30px;

    position: relative;

}

section .about-content .ab-title {

    float: left;

    width250px;

}

section .about-content img {

    float: left;

    width650px;

    height434px;

}

section .about-content .left-words {

    position: absolute;

    top50%;

    margin-top-100px;

    left0;

    width300px;

    padding20px;

    font-size18px;

    border1px solid gray;

    background: rgba(255,255,255,.5);

}

section .about-content .left-words button {

    width140px;

    height40px;

    background: #000;

    color: #fff;

    margin-top20px;

}

section .about-content .right {

    float: right;

    width258px;

    text-align: center;    

}

section .about-content .right h2 {

    font-size28px;

    font-weight: bold;    

    padding-top40px;

}

section .about-content .right .common {

    width60px;

    height3px;

    background: #07cbc9;

    margin10px auto;

}

section .about-content .right .para {

    font-size20px;

    padding-bottom40px;

}

section .about-content .right .right-top {

    margin-bottom30px;

    border1px solid #07cbc9;

}

section .about-content .right .right-bot {

    border1px solid #07cbc9;

}


写回答

1回答

好帮手慕星星

2021-09-17

同学你好,代码布局以及实现效果很棒!

建议:‘EXPLORE’按钮默认边框可以去掉,看着更美观

https://img.mukewang.com/climg/61442395092e5a8b02670079.jpg

https://img.mukewang.com/climg/614423d3096124b505390218.jpg

祝学习愉快~

0

0 学习 · 15276 问题

查看课程