仿網(wǎng)易云頁(yè)面
網(wǎng)易云-按鈕背景
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body,
h1,
h2,
h3,
ul,
li,
p {
margin: 0;
padding: 0;
}
body {
font: 12px Arial, Helvetica, sans-serif;
}
a {
text-decoration: none;
color: #000;
outline: none;
}
ul {
list-style-type: none;
}
input {
outline: none;
border: none;
}
img {
vertical-align: top;
}
i {
font-style: normal;
}
.wrapper_01 {
width: 1100px;
margin: 0 auto;
}
.wrapper_02 {
width: 980px;
margin: 0 auto;
}
.wrapper_03 {
width: 982px;
margin: 0 auto;
}
.topbar_sprite {
display: inline-block;
background-image: url("./images/topbar.png");
}
.topbar_icon_hot {
width: 28px;
height: 19px;
background-position: -190px 0;
}
.btn_sprite {
display: inline-block;
background: url("./images/button2.png") no-repeat;
height: 31px;
line-height: 31px;
text-align: center;
}
.btn_type_01_sup {
background-position: right -100px;
padding-right: 5px;
text-align: center;
}
.btn_type_01_sub {
display: block;
background-position: 0 -59px;
padding-left: 3px;
}
.btn_type_01_sub > i {
display: block;
background-position: 0 -59px;
background: url("./images/button2.png") no-repeat;
padding-left: 3px;
height: 31px;
}
.btn_type_favor_sup {
padding-right: 5px;
background-position: right -1020px;
}
.btn_type_favor_sub {
display: inline-block;
padding-left: 28px;
padding-right: 3px;
background-position: 0 -977px;
}
body {
padding-top: 50px;
text-align: center;
}
.apply {
width: 210px;
height: 31px;
text-align: center;
line-height: 31px;
font-size: 12px;
border-radius: 4px;
overflow: hidden;
font-weight: 700;
color: #000;
box-sizing: border-box;
/* background: url("./images/button2.png") right -100px no-repeat;
padding-right: 5px; */
}
.apply > i {
display: block;
height: 31px;
/* background: url("./images/button2.png") no-repeat 0 -59px;
padding-left: 3px; */
}
.btn {
width: 100px;
}
</style>
</head>
<body>
<a class="btn_sprite btn_type_01_sup apply" href="#">
<i class="btn_sprite btn_type_01_sub">申請(qǐng)成為網(wǎng)易音樂(lè)人</i>
</a>
<a class="btn_sprite btn_type_01_sup btn" href="#">
<i class="btn_sprite btn_type_01_sub">我是按鈕</i>
</a>
<a class="btn_sprite btn_type_favor_sup favor" href="#">
<i class="btn_sprite btn_type_favor_sub">(391274545454572)</i>
</a>
</body>
</html>
網(wǎng)易云main部分
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body,
h1,
h2,
h3,
ul,
li,
p {
margin: 0;
padding: 0;
}
body {
font: 12px Arial, Helvetica, sans-serif;
}
a {
text-decoration: none;
color: #000;
outline: none;
}
ul {
list-style-type: none;
}
input {
outline: none;
border: none;
}
img {
vertical-align: top;
}
i {
font-style: normal;
}
.wrapper_01 {
width: 1100px;
margin: 0 auto;
}
.wrapper_02 {
width: 980px;
margin: 0 auto;
}
.wrapper_03 {
width: 982px;
margin: 0 auto;
}
.topbar_sprite {
display: inline-block;
background-image: url("./images/topbar.png");
}
.topbar_icon_hot {
width: 28px;
height: 19px;
background-position: -190px 0;
}
.btn_sprite {
display: inline-block;
background: url("./images/button2.png") no-repeat;
height: 31px;
line-height: 31px;
text-align: center;
}
.btn_type_01_sup {
background-position: right -100px;
padding-right: 5px;
}
.btn_type_01_sub {
display: block;
background-position: 0 -59px;
padding-left: 3px;
}
.btn_type_01_sub > i {
display: block;
background-position: 0 -59px;
background: url("./images/button2.png") no-repeat;
padding-left: 3px;
height: 31px;
}
.btn_type_favor_sup {
padding-right: 5px;
background-position: right -1020px;
}
.btn_type_favor_sub {
display: inline-block;
padding-left: 28px;
padding-right: 3px;
background-position: 0 -977px;
}
.header_type_01 {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #ccc;
padding-bottom: 5px;
font-size: 12px;
}
.header_type_01 .title {
color: #333;
font-size: 12px;
}
.header_type_01 .more {
color: #666;
}
.header_type_01 .more:hover {
text-decoration: underline;
}
.main .area {
display: flex;
border: 1px solid #d3d3d3;
border-width: 0 1px;
background-image: url("./images/wrap1.png");
}
.main .area-left {
width: 729px;
}
.main .area-right {
width: 250px;
}
.main .area-right .user-login {
width: 250px;
height: 126px;
background: url("./images/index.png") 0 0;
}
.main .area-right .user-login .desc {
width: 205px;
margin: 0 auto;
padding-top: 16px;
color: #666;
font-size: 12px;
line-height: 22px;
}
.main .area-right .user-login .btn {
display: block;
margin: 15px auto 0;
width: 100px;
height: 31px;
line-height: 31px;
color: #fff;
text-align: center;
font-size: 12px;
background: url("./images/index.png") 0 -195px;
text-shadow: 0 1px 0 #8a060b;
}
.main .settle-singer {
padding: 20px;
}
.main .settle-singer .list {
padding: 5px 0;
}
.main .settle-singer .list .item {
display: flex;
width: 210px;
height: 62px;
margin-bottom: 15px;
background-color: #fafafa;
}
.main .settle-singer .item .info {
flex: 1;
display: flex;
flex-direction: column;
padding: 3px 12px;
justify-content: space-around;
border: 1px solid #e9e9e9;
border-left: none;
}
.main .settle-singer .item .info .singer {
font-size: 14px;
font-weight: 700;
color: #000;
}
.main .settle-singer .item .info .desc {
font-size: 12px;
color: #666;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.main .hot-anchor {
padding: 20px;
}
</style>
</head>
<body>
<div class="main">
<div class="area wrapper_02">
<div class="area-left"></div>
<div class="area-right">
<div class="user-login">
<p class="desc">
登錄網(wǎng)易云音樂(lè)张症,可以享受無(wú)限收藏的樂(lè)趣,并且無(wú)限同步到手機(jī)
</p>
<a href="#" class="btn">用戶登錄</a>
</div>
<div class="settle-singer">
<div class="header_type_01">
<h3 class="title">入駐歌手</h3>
<a href="#" class="more">查看全部></a>
</div>
<ul class="list">
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
</ul>
</div>
<div class="hot-anchor">
<div class="header_type_01">
<h3 class="title">熱門(mén)主播</h3>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body,
h1,
h2,
h3,
ul,
li,
p {
margin: 0;
padding: 0;
}
body {
font: 12px Arial, Helvetica, sans-serif;
}
a {
text-decoration: none;
color: #000;
outline: none;
}
ul {
list-style-type: none;
}
input {
outline: none;
border: none;
}
img {
vertical-align: top;
}
i {
font-style: normal;
}
.wrapper_01 {
width: 1100px;
margin: 0 auto;
}
.wrapper_02 {
width: 980px;
margin: 0 auto;
}
.wrapper_03 {
width: 982px;
margin: 0 auto;
}
.topbar_sprite {
display: inline-block;
background-image: url("./images/topbar.png");
}
.topbar_icon_hot {
width: 28px;
height: 19px;
background-position: -190px 0;
}
.btn_sprite {
display: inline-block;
background: url("./images/button2.png") no-repeat;
height: 31px;
line-height: 31px;
text-align: center;
}
.btn_type_01_sup {
background-position: right -100px;
padding-right: 5px;
}
.btn_type_01_sub {
display: block;
background-position: 0 -59px;
padding-left: 3px;
}
.btn_type_01_sub > i {
display: block;
background-position: 0 -59px;
background: url("./images/button2.png") no-repeat;
padding-left: 3px;
height: 31px;
}
.btn_type_favor_sup {
padding-right: 5px;
background-position: right -1020px;
}
.btn_type_favor_sub {
display: inline-block;
padding-left: 28px;
padding-right: 3px;
background-position: 0 -977px;
}
.header_type_01 {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #ccc;
padding-bottom: 5px;
font-size: 12px;
}
.header_type_01 .title {
color: #333;
font-size: 12px;
}
.header_type_01 .more {
color: #666;
}
.header_type_01 .more:hover {
text-decoration: underline;
}
.header_type_02 {
position: relative;
display: flex;
justify-content: space-between;
align-items: flex-end;
height: 35px;
box-sizing: border-box;
padding-left: 34px;
padding-right: 20px;
padding-bottom: 5px;
border-bottom: 2px solid #c10d0c;
background: url("./images/index.png") no-repeat -225px -156px;
}
.header_type_02::after {
position: absolute;
content: "";
display: block;
width: 12px;
height: 12px;
right: 5px;
bottom: 8px;
background: url("./images/index.png") no-repeat 0 -240px;
}
.header_type_02 .left_area {
display: flex;
align-items: center;
}
.header_type_02 .title {
font-size: 20px;
font-weight: normal;
color: #333;
}
.header_type_02 .keywords {
display: flex;
margin-left: 20px;
color: #999;
}
.header_type_02 .keywords .item {
color: #666;
}
.header_type_02 .keywords .line {
margin: 0 12px;
}
.header_type_02 .more {
font-size: 12px;
color: #333;
}
.header_type_02 .more:hover {
text-decoration: underline;
}
.main .area {
display: flex;
border: 1px solid #d3d3d3;
border-width: 0 1px;
background-image: url("./images/wrap1.png");
}
.main .area-left {
width: 729px;
padding: 20px 20px 40px;
}
.main .area-right {
width: 250px;
}
.main .area-right .user-login {
width: 250px;
height: 126px;
background: url("./images/index.png") 0 0;
}
.main .area-right .user-login .desc {
width: 205px;
margin: 0 auto;
padding-top: 16px;
color: #666;
font-size: 12px;
line-height: 22px;
}
.main .area-right .user-login .btn {
display: block;
margin: 15px auto 0;
width: 100px;
height: 31px;
line-height: 31px;
color: #fff;
text-align: center;
font-size: 12px;
background: url("./images/index.png") 0 -195px;
text-shadow: 0 1px 0 #8a060b;
}
.main .settle-singer {
padding: 20px;
}
.main .settle-singer .list {
padding: 5px 0;
}
.main .settle-singer .list .item {
display: flex;
width: 210px;
height: 62px;
margin-bottom: 15px;
background-color: #fafafa;
}
.main .settle-singer .item .info {
flex: 1;
display: flex;
flex-direction: column;
padding: 3px 12px;
justify-content: space-around;
border: 1px solid #e9e9e9;
border-left: none;
}
.main .settle-singer .item .info .singer {
font-size: 14px;
font-weight: 700;
color: #000;
}
.main .settle-singer .item .info .desc {
font-size: 12px;
color: #666;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.main .hot-anchor {
padding: 20px;
}
</style>
</head>
<body>
<div class="main">
<div class="area wrapper_02">
<div class="area-left">
<div class="recommend-section">
<div class="header_type_02">
<div class="left_area">
<h2 class="title">熱門(mén)推薦</h2>
<ul class="keywords">
<li><a class="item" href="#">華語(yǔ)</a></li>
<li class="line">|</li>
<li><a class="item" href="#">流行</a></li>
<li class="line">|</li>
<li><a class="item" href="#">搖滾</a></li>
<li class="line">|</li>
<li><a class="item" href="#">民謠</a></li>
<li class="line">|</li>
<li><a class="item" href="#">電子</a></li>
</ul>
</div>
<div class="right_area">
<a class="more" href="#">更多</a>
</div>
</div>
</div>
<div class="disc-section">
<div class="header_type_02">
<div class="area_left">
<h2 class="title">新碟上架</h2>
</div>
<div class="area_right">
<a href="#" class="more">更多</a>
</div>
</div>
</div>
<div class="rank-section">
<div class="header_type_02">
<div class="area_left">
<h2 class="title">榜單</h2>
</div>
<div class="area_right">
<a href="#" class="more">更多</a>
</div>
</div>
</div>
</div>
<div class="area-right">
<div class="user-login">
<p class="desc">
登錄網(wǎng)易云音樂(lè)矿瘦,可以享受無(wú)限收藏的樂(lè)趣,并且無(wú)限同步到手機(jī)
</p>
<a href="#" class="btn">用戶登錄</a>
</div>
<div class="settle-singer">
<div class="header_type_01">
<h3 class="title">入駐歌手</h3>
<a href="#" class="more">查看全部></a>
</div>
<ul class="list">
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
<li>
<a href="#" class="item">
<div class="album">
<img src="./images/109951165588539704.jpg" alt="" />
</div>
<div class="info">
<div class="singer">張惠妹aMEI</div>
<div class="desc">臺(tái)灣歌手張惠妹</div>
</div>
</a>
</li>
</ul>
</div>
<div class="hot-anchor">
<div class="header_type_01">
<h3 class="title">熱門(mén)主播</h3>
</div>
</div>
</div>
</div>
</div>
</body>
</html>