麻烦老师检查一下代码有什么需要修改的
来源:4-8 自由编程
			Yuujio
2021-05-08 16:05:52
<!--About-->
<div class="about">
<div class="about_top">
<h2>ABOUT</h2>
<div class="top-line"></div>
<div class="top-p">
<p>Lorem Ipsum is simply dummy text of theprinting and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</p>
</div>
</div>
<div class="about_motton">
<div class="motton-left">
<h3>A WORD ABOUT US</h3>
<div class="motton-explore">
<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>
<div class="motton-centert">
<img class="about-buttom-img" src="images/bb3.jpg">
</div>
<div class="motton-right">
<div class="motton-students m">
<p class="num">70000</p>
<div class="line"></div>
<p>Students</p>
</div>
<div class="motton-Faculty m">
<p class="num">600</p>
<div class="line"></div>
<p>Faculty</p>
</div>
</div>
</div>
</div>
.content .about{
    width: 1200px;
    margin: 0 auto;
}
.content .about .about_top{
    margin-top: 30px;
    overflow: hidden;
}
.content .about .about_top h2{
    font-size: 32px;
    text-align: center;
}
.content .about .about_top .top-line{
    width: 60px;
    height: 3px;
    background-color: #07cbc9;
    margin: 10px auto;
}
.content .about .about_top .top-p{
    margin: 0 auto;
    width: 500px;
    text-align: center;
    color: grey;
    font-size: 14px;
}
.content .about  .about_motton{
    width: 1201px;
    height: 464px;
    margin: 0 auto;
    padding-top: 30px;
}
.content .about  .about_motton .motton-left{
    position: relative;
    float: left;
}
.content .about  .about_motton h3{
    display: block;
    width: 200px;
    font-size: 32px;
    margin-bottom: 30px;
}
.content .about  .about_motton .motton-explore{
    position: absolute;
    float: left;
    width: 300px;
    padding: 20px;
    font-size: 18px;
    border: 1px solid grey;
    background-color: rgba(255,255,255,0.5);
}
.content .about  .about_motton .motton-explore p{
    display: block;
    width: 300px;
    margin-bottom: 30px;
}
.content .about  .about_motton .motton-explore button{
    width: 140px;
    height: 40px;
    background-color: black;
    color: whitesmoke;
}
.content .about  .about_motton .motton-centert{
    float: left;
}
.content .about  .about_motton .about-buttom-img{
    width: 650px;
    height: 435px;
    margin-left: 30px;
}
.content .about  .about_motton  .motton-right{
    float: right;
}
.content .about  .about_motton  .motton-right .m{
    padding: 40px 0;
    width: 260px;
    text-align: center;
    border: solid cyan;
    margin-bottom: 30px;
}
.content .about  .about_motton  .motton-right .line{
    width: 60px;
    height: 3px;
    background-color: #07cbc9;
    margin: 10px auto;
}
.content .about  .about_motton  .motton-right .m .num{
    font-size: 28px;
    font-weight: bold;
}
1回答
					好帮手慕然然
2021-05-08
同学你好,代码实现基本没问题,如下几处代码建议优化一下:
1、建议将“EXPLORE”按钮的样式优化一下,去除默认的边框,参考如下

2、css代码中给右侧蓝色盒子设置border属性时,没有设置宽度值,建议参考如下修改
祝学习愉快!
相似问题
回答 1
回答 2