老师,请问下为什么我这边设置后水平分割线不在正中央
老师,请问下为什么我这边设置后水平分割线不在正中央

相关代码:
<!-- About --> <section class="about"> <!-- 标题和简短描述 --> <div class="title-and-shortDescription"> <h2 class="title">ABOUT</h2> <div class="cross-line"></div> <p class="short-description">Lorem Ipsum is simply dummy text of the printing and typesetting<br /> industry. Lorem Ipsum has been the industry's standard dummy<br /> text ever since the 1500s.</p> </div> </section>
相关代码:
.about {
width: 1200px;
margin: 0 auto;
}
.about .title-and-shortDescription .title {
font-size: 32px;
text-align: center;
margin-top: 30px;
}
.about .title-and-shortDescription .cross-line {
width: 60px;
height: 3px;
margin: 10px auto;
background: #07cbc9;
}
.about .title-and-shortDescription .short-description {
text-align: center;
color:gray;
font-size: 14px;
}11
收起
正在回答 回答被采纳积分+1
1回答


恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星