正在回答
3回答
你好,建议参考代码如下:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> /*-- About Section --*/ .about{ width: 1080px; padding-top:50px; background-color:white; margin:0 auto; position:relative; overflow: hidden; } h3{ color: #000; font-size: 50px; text-align:center; } label.line{ background-color:#07cbc9; display:block; width: 40px; height: 2px; margin:15px auto; } h4{ font-size:35px; font-weight:normal; } h6{ color: #BDBDBC; padding-bottom: 30px; width: 45%; margin: 0 auto; font-size: 15px; line-height: 25px; text-align:center; } .p{ color: #797979; padding-bottom: 30px; width: 45%; margin: 0 auto; font-size: 15px; line-height: 25px; text-align:center; } .img{ float: left; margin: 0 35px; height: 380px; } .aboutleftbottom { border: 1px solid #C5C5C5; padding: 25px 25px; text-align: left; position: absolute; width: 320px; top: 350px; color: black; background-color: rgba(255, 255, 255, 0.4); } .aboutleftbottom p{ margin-bottom:10px; line-height:25px; } </style> </head> <body> <div id="about" style="witdh:100%"> <div class="about"> <div class="abouttop"> <h3>ABOUT</h3> <label class="line"></label> <p class="p">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 class="img"> <img height="100%" src="images/bb3.jpg"> </div> <div class="aboutmiddle"> <div class="aboutleftbottom"> <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> <a href="#" data-toggle="modal" data-target="#myModal">EXPLORE</a> </div> </div> </div> </div> </div> </body> </html>
或者贴出您的源码,如果解决您的问题请采纳,祝学习愉快!
2. 从网页搭建入门JavaWeb
- 参与学习 人
- 提交作业 676 份
- 解答问题 9666 个
本阶段将从前端网页搭建入手,到Java Web基础,前后端结合助你完成Java Web小白的蜕变!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星