这个按钮要怎么设计比较好呢
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <link rel="stylesheet" type="text/css" href="CSS/common.css"> </head> <body> <div class="header"> <div class="logo"> <img src="images/logo.png" /> </div> <div class="menu"> <ul> <li>HOME</li> <li>ABOUT</li> <li>GALLERY</li> <li>FACULTY</li> <li>EVENTS</li> <li>CONTACT</li> </ul> </div> </div> <div class="content"> <div class="banner"> <div class="beijin"></div> </div> <div class="about"> <div class="bg1"> <div class="top"> <div class="h3" id=""> <h3>ABOUT</h3> </div> <p>Xi Jinping, general secretary of the Central Committee of the Communist Party of China (CPC), presided over the 10th meeting of the central committee for deepening overall reform Monday.</p> <img src="images/bb3.jpg" /> </div> <div class="left"> <div class="p1"> <p> A WORD <br>ABOUT US </p> </div> <div class="p2"> <p> Xi Jinping, general secretary of the Central Committee of the Communist Party of China (CPC), presided over the 10th meeting of the central committee for deepening overall reform Monday. </p> <div class="btn"> <a href="#" class="btn-a"> <p>EXPLORE</p> </a> </div> </div> </div> </div> </div> <div class="info2"></div> <div class="info3"></div> </div> <div class="footer"></div> </body> </html>
*{ padding: 0px; margin: 0px; } a{ text-decoration: none; } .header{ width: 1910px; height: 80px; line-height: 80px; background-color: #07cbc9; position: fixed; } .header .logo img{ margin-left: 90px; float: left; margin-top: 15px; } .header .menu{ height: 80px; line-height: 80px; float: right; color: white; } .header .menu li{ float: left; line-height: 80px; margin-right: 10px; list-style: none; } .content{ width: 1910px; height: auto; overflow: hidden; } .content .banner{ margin-top: 80px; } .content .banner .beijin{ background: url(../images/banner3.jpg); width: 1910px; height: 600px; background-repeat: no-repeat; background-size:1910px 600px; /* float: left; */ } .content .about .bg1{ width: 1910px; height: 800px; } .content .about .bg1 img{ margin: 300px 580px; } .content .about .bg1 H3{ float: left; position: absolute; font-size: 50px; margin: 60px 800px ; } .content .about .bg1 .top p{ margin: 140px 740px; width: 300px; height: 100px; word-wrap: break-word; text-align: center; position: absolute; } .about .bg1 .left .p1 p{ position: absolute; font-size: 35px; text-align: center; margin: -650px 320px; } .about .bg1 .left .p2{ position: absolute; width: 300px; height: 200px; border: darkgray 1px solid; margin: -500px 320px; font-size: 20px; background: rgba(255,255,255,0.4); } .about .bg1 .left .p2 .btn .btn-a{ width: 50px; } .about .bg1 .left .p2 .btn .btn-a p{ font-size: 20px; }
感觉总体思路还是比较零散的,麻烦老师看看做到现在有什么需要改正的,谢谢了
4
收起
正在回答 回答被采纳积分+1
2回答
2. 从网页搭建入门JavaWeb
- 参与学习 人
- 提交作业 676 份
- 解答问题 9666 个
本阶段将从前端网页搭建入手,到Java Web基础,前后端结合助你完成Java Web小白的蜕变!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星