明日方舟官网主页的粗糙仿制【HTML+CSS作业2】

因为我自己是手游明日方舟的爱好玩家
所以在老师让我们自己找一些官网仿照去实现的时候毫不犹豫地选择了明日方舟的官网
最后仿制了一点点,发现原来实现这些前端页面没有想象中的容易
下面是尝试仿制的实现结果
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

和官网的差别还是很明显的,也更加清楚的认识到了自己的不足。

  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
以下是一个简单的HTML+CSS页设计仿OPPO官的例子: ```html <!DOCTYPE html> <html> <head> <title>OPPO官仿制</title> <style type="text/css"> body { margin: 0; padding: 0; font-family: Arial, sans-serif; } .header { background-color: #fff; height: 80px; border-bottom: 1px solid #ccc; display: flex; justify-content: space-between; align-items: center; padding: 0 50px; } .logo { font-size: 30px; font-weight: bold; color: #333; } .nav { display: flex; align-items: center; } .nav li { list-style: none; margin-left: 20px; } .nav a { text-decoration: none; color: #333; font-size: 16px; font-weight: bold; } .banner { background-image: url(https://cdn.pixabay.com/photo/2016/11/29/05/45/astronomy-1867616_960_720.jpg); background-size: cover; height: 500px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; } .banner h1 { font-size: 60px; margin: 0; line-height: 1.2; } .banner p { font-size: 24px; margin: 20px 0 0; } .content { padding: 50px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .card { width: 30%; background-color: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.1); margin-bottom: 50px; transition: all 0.3s ease-in-out; } .card:hover { transform: translateY(-10px); box-shadow: 0 15px 20px rgba(0,0,0,0.3); } .card img { width: 100%; height: 200px; object-fit: cover; } .card h2 { font-size: 24px; margin: 20px 0 10px; } .card p { font-size: 16px; margin: 0; color: #666; } .card button { background-color: #f00; color: #fff; border: none; padding: 10px 20px; font-size: 16px; margin-top: 20px; cursor: pointer; transition: all 0.3s ease-in-out; } .card button:hover { background-color: #fff; color: #f00; border: 1px solid #f00; } .footer { background-color: #333; color: #fff; padding: 50px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .footer p { margin: 0; font-size: 16px; } .footer a { color: #fff; text-decoration: none; font-size: 16px; margin-left: 20px; } </style> </head> <body> <header class="header"> <div class="logo">OPPO</div> <ul class="nav"> <li><a href="#">首页</a></li> <li><a href="#">产品</a></li> <li><a href="#">服务</a></li> <li><a href="#">社区</a></li> <li><a href="#">关于我们</a></li> </ul> </header> <section class="banner"> <h1>Find X3 Pro</h1> <p>探索更多,发现更多</p> </section> <section class="content"> <div class="card"> <img src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg"> <h2>OPPO Find X3 Pro</h2> <p>全新一代旗舰,探索更多,发现更多</p> <button>了解更多</button> </div> <div class="card"> <img src="https://cdn.pixabay.com/photo/2016/11/29/05/45/astronomy-1867616_960_720.jpg"> <h2>OPPO Find X3 Pro</h2> <p>全新一代旗舰,探索更多,发现更多</p> <button>了解更多</button> </div> <div class="card"> <img src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg"> <h2>OPPO Find X3 Pro</h2> <p>全新一代旗舰,探索更多,发现更多</p> <button>了解更多</button> </div> </section> <footer class="footer"> <p>版权所有 © 2021 OPPO</p> <div> <a href="#">关于我们</a> <a href="#">联系我们</a> <a href="#">加入我们</a> <a href="#">服务中心</a> </div> </footer> </body> </html> ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值