漂亮的移动端我的页面html代码html
漂亮的移动端我的页面html代码...
演示效果:
实现代码:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>我的页面</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background: linear-gradient(135deg, #6a11cb, #2575fc); color: white; } .header { text-align: center; padding: 40px 20px; background: rgba(255, 255, 255, 0.1); border-radius: 0 0 30px 30px; margin-bottom: 20px; } .avatar { width: 100px; height: 100px; border-radius: 50%; border: 3px solid white; margin-bottom: 15px; transition: transform 0.3s ease; } .avatar:hover { transform: scale(1.1); } .username { font-size: 24px; font-weight: bold; margin-bottom: 5px; } .user-info { font-size: 14px; color: rgba(255, 255, 255, 0.8); } .menu { padding: 0 20px; } .menu-item { background: rgba(255, 255, 255, 0.1); padding: 15px; margin-bottom: 10px; border-radius: 10px; display: flex; align-items: center; transition: background 0.3s ease; } .menu-item:hover { background: rgba(255, 255, 255, 0.2); } .menu-item i { font-size: 20px; margin-right: 15px; color: white; } .menu-item a { text-decoration: none; color: white; font-size: 16px; flex: 1; } .menu-item a:hover { color: #ffdd57; } .footer { text-align: center; padding: 20px; font-size: 12px; color: rgba(255, 255, 255, 0.6); } </style> </head> <body> <div> <img src="http://home.baidu.com/Public/img/logo.png" alt="用户头像"> <div>用户名</div> <div>用户简介或标语</div> </div> <div> <div> <i class="fas fa-shopping-bag"></i> <a href="#">我的订单</a> </div> <div> <i class="fas fa-heart"></i> <a href="#">我的收藏</a> </div> <div> <i class="fas fa-cog"></i> <a href="#">设置</a> </div> <div> <i class="fas fa-question-circle"></i> <a href="#">帮助与反馈</a> </div> <div> <i class="fas fa-sign-out-alt"></i> <a href="#">退出登录</a> </div> </div> <div> © 2023 我的页面. 保留所有权利. </div> </body> </html>
上一篇:漂亮的移动端登录html代码
下一篇:没有了
我要评论