01-HTML+CSS/14-仿网易云页面

仿网易云页面

网易云-按钮背景

<!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">申请成为网易音乐人</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>

网易云main部分

网易云main.png
<!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">
              登录网易云音乐,可以享受无限收藏的乐趣,并且无限同步到手机
            </p>
            <a href="#" class="btn">用户登录</a>
          </div>
          <div class="settle-singer">
            <div class="header_type_01">
              <h3 class="title">入驻歌手</h3>
              <a href="#" class="more">查看全部&gt;</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">台湾歌手张惠妹</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">台湾歌手张惠妹</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">台湾歌手张惠妹</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">台湾歌手张惠妹</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">台湾歌手张惠妹</div>
                  </div>
                </a>
              </li>
            </ul>
          </div>
          <div class="hot-anchor">
            <div class="header_type_01">
              <h3 class="title">热门主播</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">热门推荐</h2>
                <ul class="keywords">
                  <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>
                  <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">
              登录网易云音乐,可以享受无限收藏的乐趣,并且无限同步到手机
            </p>
            <a href="#" class="btn">用户登录</a>
          </div>
          <div class="settle-singer">
            <div class="header_type_01">
              <h3 class="title">入驻歌手</h3>
              <a href="#" class="more">查看全部&gt;</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">台湾歌手张惠妹</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">台湾歌手张惠妹</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">台湾歌手张惠妹</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">台湾歌手张惠妹</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">台湾歌手张惠妹</div>
                  </div>
                </a>
              </li>
            </ul>
          </div>
          <div class="hot-anchor">
            <div class="header_type_01">
              <h3 class="title">热门主播</h3>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 206,013评论 6 481
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 88,205评论 2 382
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 152,370评论 0 342
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 55,168评论 1 278
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 64,153评论 5 371
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,954评论 1 283
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,271评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,916评论 0 259
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 43,382评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,877评论 2 323
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,989评论 1 333
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,624评论 4 322
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,209评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,199评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,418评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,401评论 2 352
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,700评论 2 345

推荐阅读更多精彩内容