当前位置: 首页 > news >正文

【网易云-header】

网易云静态页面(1)

  • 效果
  • html
  • css

效果

在这里插入图片描述

html

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>网易云音乐</title><link rel="stylesheet" href="./css/header.css"><link rel="stylesheet" href="./css/common.css">
</head><body><!-- header部分 --><header><!--  --><div class="header-top"><div class="header-top-box"><h1><a href="#"></a></h1><ul class="header-top-ul"><li><a id="findMusic" href="#">发现音乐</a><em></em></li><li><a id="myMusic" href="#">我的音乐</a><em></em></li><li><a id="follow" href="#">关注</a><em></em></li><li><a id="shop" href="#">商城</a><em></em></li><li><a id="musician" href="#">音乐人</a><em></em></li><li><a id="download" href="#">下载客户端</a><em></em></li></ul><div class="search"><input type="text" placeholder="音乐/视频/电台/用户" name="" id=""></div><a href="#" class="designer">创作者中心</a><a href="#" class="login">登录</a></div><!--  --><div class="header-none-box"></div><!--  --><div class="header-bottom"><div class="header-bottom-box"><ul class="header-bottom-ul"><li><a id="intro" href="#"><span>推荐</span></a></li><li><a id="ranking" href="#"><span>排行榜</span></a></li><li><a id="songList" href="#"><span>歌单</span></a></li><li><a id="radio" href="#"><span>主播电台</span></a></li><li><a id="singer" href="#"><span>歌手</span></a></li><li><a id="newDisk" href="#"><span>新碟上架</span></a></li></ul></div></div></div></header></body></html>

css

* {margin: 0px;padding: 0px;box-sizing: border-box;
}a {text-decoration: none;
}li {list-style: none;
}
header {width: 100%;
}header .header-top {width: 100%;height: 70px;background-color: #242424;
}header .header-top .header-top-box {width: 1100px;height: 100%;margin: auto;
}header .header-top .header-top-box h1 {float: left;width: 176px;height: 70px;padding-right: 20px;
}header .header-top .header-top-box h1 a {display: block;width: 100%;height: 100%;background: url("../logo/topbar.png") no-repeat 0px 0px;
}header .header-top .header-top-box ul {float: left;height: 100%;line-height: 70px;
}header .header-top .header-top-box ul li {float: left;position: relative;
}header .header-top .header-top-box ul li a {position: relative;display: block;color: #cccccc;font-size: 14px;height: 100%;padding: 0px 20px;
}header .header-top .header-top-box ul li a:hover {color: #ffffff;background-color: #000000;
}header .header-top .header-top-box ul li em {position: absolute;left: 45%;/* display: none; */top: 91%;width: 12px;height: 7px;background: url("../logo/topbar.png") no-repeat -226px 0px;
}header .header-top .header-top-box ul li:last-child>a::before {content: "";display: block;/*让为元素可以设置宽高*/position: absolute;left: 95px;top: 20px;width: 28px;height: 15px;background: url("../logo/topbar.png") no-repeat -191px 1px;
}header .header-top .header-top-box .search {float: left;width: 158px;height: 32px;/* background-color: green; */border-radius: 16px;margin: 19px 0px 0px 85px;background-color: #ffffff;position: relative;
}header .header-top .header-top-box .search::before {content: "";display: block;width: 16px;height: 16px;position: absolute;left: 8px;top: 8px;background: url("../logo/topbar.png") no-repeat -9px -107px;
}header .header-top .header-top-box .search input {width: 74%;/* height: 16px; */position: absolute;left: 27px;top: 8px;background-color: #fff;outline: none;border: none;
}header .header-top .header-top-box .designer {display: block;float: left;width: 90px;height: 30px;font-size: 12px;color: #ccc;border: 1px solid #4f4f4f;border-radius: 15px;line-height: 30px;margin: 20px 0px 0px 15px;padding-left: 16px;
}header .header-top .header-top-box .designer:hover {color: #fff;border-color: #fff;
}header .header-top .header-top-box .login {display: block;float: left;width: 28px;height: 16px;font-size: 12px;color: #787878;margin: 28px 0px 0px 15px;}header .header-top .header-top-box .login:hover {text-decoration: underline;
}/*  */
header .header-none-box {width: 100%;height: 5px;/* display: none; */background-color: #d80000;
}/*  */
header .header-bottom {width: 100%;height: 35px;/* display: block; */background-color: #c11515;
}header .header-bottom .header-bottom-box {width: 1100px;height: 100%;margin: auto;
}header .header-bottom .header-bottom-box ul {height: 100%;width: 100%;padding-left: 180px;
}header .header-bottom .header-bottom-box ul li {height: 100%;float: left;line-height: 35px;
}header .header-bottom .header-bottom-box ul li a {display: block;height: 100%;line-height: 35px;color: #fff;font-size: 12px;padding: 0px 15px;
}header .header-bottom .header-bottom-box ul li a span {padding: 2px 15px 3px 15px;border-radius: 20px;
}header .header-bottom .header-bottom-box ul li a span:hover {background-color: #8f1515;
}
http://www.dtcms.com/a/283072.html

相关文章:

  • HarmonyOS从入门到精通:自定义组件开发指南(九):组件复合与组合模式探秘
  • S7-1200 数字量模块接线:从源型 / 漏型到信号板扩展全解析
  • 【Tools】Saleae Logic 16软件安装教程
  • 【人工智能99问】损失函数有哪些,如何选择?(6/99)
  • 道可云人工智能每日资讯|天津市人工智能(AI+信创)创新生态联盟成立
  • 手撕设计模式之消息推送系统——桥接模式
  • MyBatis详解以及在IDEA中的开发
  • TRAE + Milvus MCP:用自然语言 0 门槛玩转向量数据库
  • 第五章 OB 分布式事务高级技术
  • 【Unity基础】Unity中的Pivot vs Center 小实验步骤列表 + 截图指引
  • 股票基金量化开源平台对比
  • 用AI破解数据质量难题
  • 【前端】CSS类命名规范指南
  • 主流 TOP5 AI智能客服系统对比与推荐
  • 高效开发利器:用宝塔面板快速搭建 PHP 开发环境教程
  • Android开发知识点总结合集
  • 微服务引擎 MSE 及 API 网关 2025 年 4 月产品动态
  • Docker 安装和配置 MySQL 8.0.36 的详细步骤
  • @[TOC](斐波那契数列模型)
  • RHCSA(配置本地yum源仓库)
  • 【Canvas与文字】“浪急方舟静 山险马背平”中堂
  • 【Datawhale AI 夏令营】电商评论用户洞察
  • 亚马逊广告优化策略:如何通过预算管理提升投放效果?
  • @classmethod
  • 无细胞蛋白表达|线性DNA快速表达|高效体外合成系统
  • LintCode第104题-合并k个排序链表
  • Eplan API Project Settings
  • 08_驱动编写(ko文件生成与使用)
  • Linux中CentOS-7-x86_64:安装JDK1.8与启动部署Tomcat8.5.45(适合开发/测试环境)
  • ASP.NET Core Hosting Bundle