index.html

<!DOCTYPE html>
<html lang="en"><head>
<!--系统内置 start-->
<script type="text/javascript"></script>
<!--系统内置 end--><meta charset="UTF-8"><title>微博实战--banner</title><link rel="stylesheet" href="index.css">
</head><body><section class="banner"><header><!-- 头像 --><div class="head"></div><!-- 姓名 性别 等级 --><div class="title"><span>我是娜扎</span><i class="sex"></i><i class="level"></i></div><div class="introduce">演员,代表作《择天记》</div><div class="actions clearfix"><div class="focus"><span>关注</span></div><div class="focus-more"></div><div class="p-message">私信</div><div class="m-more"></div></div></header><nav><div class="container clearfix"><span class="left">她的主页</span><span class="right">她的相册</span></div></nav></section>
</body></html>

index.css

* {margin: 0;padding: 0;
}
.clearfix::after {content: '';display: block;clear: both;
}.banner {box-sizing: border-box;width: 920px;
}.banner header {box-sizing: border-box;height: 300px;padding-top: 30px;background: url(./images/banner-bg.png) no-repeat center;background-size: contain;
}.banner header .head {width: 110px;height: 110px;margin: 0 auto;border-radius: 50%;background: url(./images/banner-head-icon.png) no-repeat center;background-size: contain;
}.banner header .title {margin-top: 10px;margin-bottom: 5px;text-align: center;
}.banner header .title span {font-size: 22px;line-height: 29px;font-family: PingFang SC;font-style: normal;font-weight: 500;color: #ffffff;text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.31);vertical-align: text-bottom;
}.banner header .title i {display: inline-block;width: 16px;height: 16px;
}.banner header .title i.sex {background: url(./images/sex-icon.png) no-repeat center;background-size: contain;
}.banner header .title i.level {background: url(./images/leval-icon.png) no-repeat center;background-size: contain;
}.banner header .introduce {margin-bottom: 19px;text-align: center;font-family: PingFang SC;font-style: normal;font-weight: 500;font-size: 12px;line-height: 20px;color: #FFFFFF;text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.42);
}.banner header .actions {width: 275px;margin: 0 auto;
}.banner header .actions .focus {position: relative;float: left;width: 100px;background: linear-gradient(180deg, #FA823C 0%, #F55F10 100%);border-radius: 2px;font-family: PingFang SC;font-style: normal;font-weight: 500;font-size: 14px;line-height: 32px;color: #FFFFFF;
}.banner header .actions .focus::before {position: absolute;top: 11px;left: 27px;content: '';width: 10px;height: 10px;background: url(./images/add-icon.png) no-repeat center;background-size: contain;
}.banner header .actions .focus span {margin-left: 42px;
}.banner header .actions .focus-more {position: relative;float: left;margin-left: 5px;margin-right: 12px;width: 20px;height: 32px;background: linear-gradient(180deg, #FA823C 0%, #F55F10 100%);border-radius: 2px;
}.banner header .actions .focus-more::before {content: '';position: absolute;top: 14px;left: 7px;width: 7px;height: 4px;background: url(./images/triangle-icon.png) no-repeat center;background-size: contain;
}.banner header .actions .p-message {float: left;width: 100px;margin-right: 8px;background: #70757F;border-radius: 2px;text-align: center;line-height: 32px;color: #FFFFFF;font-family: PingFang SC;font-style: normal;font-weight: 500;font-size: 14px;
}.banner header .actions .m-more {position: relative;float: left;width: 30px;height: 32px;background: #70757F;border-radius: 2px;
}.banner header .actions .m-more::before {content: '';position: absolute;top: 10px;left: 8px;width: 14px;height: 11px;background: url(./images/list-icon.png) no-repeat center;background-size: contain;
}.banner nav {box-sizing: border-box;background: #FFFFFF;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.15);
}.banner nav .container {width: 332px;margin: 0 auto;
}.banner nav .container span {box-sizing: border-box;float: left;height: 40px;font-family: PingFang SC;font-style: normal;font-weight: normal;font-size: 14px;line-height: 14px;color: #000000;
}.banner nav .container span.left {line-height: 40px;font-weight: 600;border-bottom: 2px solid #F7691D;
}.banner nav .container span.right {float: right;line-height: 40px;
}

运行结果

前端学习(1813):前端调试之微博个人banner开发相关推荐

  1. 2021年最新版Web前端学习路线图-前端小白入门必读-推荐

    2021年最新版Web前端学习路线图-前端小白入门必读-推荐 Hello,大家好,相信很多学习前端的小伙伴,会有很多的疑惑: 我要学习那些技术? 我要到哪里去学习这些技术呢? 学习这些技术的目的对就业 ...

  2. web前端学习路线(含20个真实web开发项目集合)

    目前web前端工程师日均岗位缺口已经超过50000,随着互联网+的深入发展,html5作为前端展示技术,市场人才需求量将呈直线上涨. Web前端工程师的岗位职责是利用HTML.CSS.Java.DOM ...

  3. web前端学习之前端重构方案,来了解一下

    前端技术发展很快,很多项目面临前端部分重构,很开心可以让我进行这次项目前端的重构方案编写,在思考的同时参考了网上很多资料,希望本篇重构方案有一定的完整性,可以带给大家一些在面临重构时有用的东西,同时希 ...

  4. 前端学习(5):深入了解网站开发

    要了解web前后端的区别,首先必须得清楚什么是web前端和web后端. 首先:web的本意是蜘蛛网和网的意思,在网页设计中我们称为网页的意思.现广泛译作网络.互联网等技术领域.表现为三种形式,即超文本 ...

  5. 顾川的前端学习笔记--前端开发基础

    阶段一前端开发基础 初始HTML 本阶段重难点 3.29小时40小节4个模块 CSS选择器 盒模型 CSS三大特性 浮动和清楚浮动 CSS四种定位 CSS进阶 CSS3 前端工程师需要会的PS取图 案 ...

  6. 前端学习(2842):UI组件的开发和配置

  7. 前端学习(2110):组件化得开发和实现步骤

  8. 【前端学习】前端学习第二天:图片标签、音频标签及视频标签的用法说明

    一.图片标签 在介绍图片标签之前,首先可以了解一下图片的格式. 1.jpeg(jpg):支持的颜色比较丰富,不支持透明效果,不支持动图: 2.gif:支持的颜色比较少,支持简单透明,支持动图: 3.p ...

  9. 【前端学习】前端学习第十九天:浏览器对象模型(BOM)中的对象

    在介绍BOM中的对象之前,首先来了解一下URL的概念,URL全称为统一资源定位符,是互联网是标准资源地址,互联网上每一个文件都有一个唯一的URL: window对象给我们提供了一个location属性 ...

最新文章

  1. Word编写代码时输出半角引号
  2. Pattern-No.03 设计模式之策略模式
  3. CodeForces - 375D Tree and Queries(树上启发式合并)
  4. (六)Javascript 规范
  5. easypoi设置黑色边框_迷人的G-SHOCK MTG-B1000XBD,碳纤维与黑色金属的魅力
  6. MySql 8 命令
  7. 分别采用线性LDA、k-means和SVM算法对鸢尾花数据集和月亮数据集进行二分类可视化分析
  8. UIImagePickerController---iOS-Apple苹果官方文档翻译
  9. 百度亮相NeurIPS 首届Expo:向世界科普了中国自动机器学习框架
  10. 如何在Word中打开公式编辑器
  11. 6 种 Python 数据可视化工具
  12. 《老路用得上的商学课》51-55学习笔记
  13. bzoj3717 [PA2014]Pakowanie (状压dp)
  14. while循环实例C语言,实例之while循环
  15. 磊科路由器dns服务器老要修复,路由器DNS劫持的解决方法
  16. 计算机网络多项式的定义,多项式
  17. [cstc2021]wp
  18. 什么是云效 Projex,云效Projex企业级高效研发项目管理平台
  19. sql替换或删除数据库中某字段中的特定字符
  20. 利用Python对接MySQL实现员工管理系统

热门文章

  1. MongoDB学习使用
  2. 很好的理解遗传算法的样例
  3. Microsoft Expression Studio 4 Ultimate 中文版发布
  4. .NET平台依赖注入机制及IoC的设计与实现
  5. matlab自带kfcm函数,kfcmFun.m
  6. synchronized 异常_由浅入深,Java 并发编程中的 Synchronized
  7. python初始化函数_当你学会了Python爬虫,网上的图片素材就免费了
  8. mysql jpa 批注 视图_通过JPA注解映射视图的实体类 jpa 视图 无主键 @Query注解的用法(Spring Data JPA) jpa 使用sql语句...
  9. python flask Blueprint搭建
  10. 【 Grey Hack 】万金油脚本:原地提权工具