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

仿网易云页面

box-sizing的应用场景

<!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>
      .box {
        width: 200px;
        height: 200px;
        background-color: orange;
        box-sizing: border-box;
        border: 20px solid #f00;
      }
    </style>
  </head>
  <body>
    <div class="box"></div>
  </body>
</html>

box-sizing的无作用

<!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>
      .container {
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box {
        height: 200px;
        border-right: 30px solid #0f0;
        background-color: #f00;
      }
    </style>
  </head>
  <body>
    <!-- 块级盒子的嵌套 -->
    <div class="container">
      <div class="box"></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>
      .container {
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box {
        height: 200px;
        /* width: 300px; */
        width: 100%;
        border-right: 30px solid #0f0;
        background-color: #f00;
      }
    </style>
  </head>
  <body>
    <!-- 块级盒子的嵌套 -->
    <div class="container">
      <div class="box"></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>
      .container {
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box {
        height: 200px;
        padding-right: 30px;
        border-right: 30px solid #0f0;
        /* 无效 */
        box-sizing: border-box;
        background-color: #f00;
      }
    </style>
  </head>
  <body>
    <!-- 块级盒子的嵌套 -->
    <div class="container">
      <div class="box">我是coderwhy,哈哈哈哈,呵呵呵呵呵呵呵</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>
      .container {
        position: relative;
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box {
        position: absolute;
        width: 100px;
        height: 100px;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        background-color: #f00;
        box-sizing: border-box;
        border: 10px solid #0f0;
      }
    </style>
  </head>
  <body>
    <!-- 定位的案例 -->
    <div class="container">
      <div class="box"></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>
      .container {
        position: relative;
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box {
        position: absolute;
        /* width: 100px;
        height: 100px; */
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        /* margin: auto; */
        background-color: #f00;
        /* box-sizing: border-box; */
        border: 10px solid #0f0;
      }
    </style>
  </head>
  <body>
    <!-- 定位的案例 -->
    <div class="container">
      <div class="box"></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>
      .container {
        display: flex;
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box {
        width: 100px;
        background-color: #f00;
      }
    </style>
  </head>
  <body>
    <!-- flex布局 -->
    <div class="container">
      <div class="box"></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>
      .container {
        display: flex;
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box {
        width: 100px;
        background-color: #f00;
        border-top: 30px solid #0f0;
      }
    </style>
  </head>
  <body>
    <!-- flex布局 -->
    <div class="container">
      <div class="box"></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>
      .container {
        display: flex;
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box3 {
        width: 100px;
        background-color: #f00;
        border-top: 30px solid #0f0;
      }

      .container .box4 {
        flex-grow: 1;
        background-color: purple;
      }
    </style>
  </head>
  <body>
    <!-- flex布局 -->
    <div class="container">
      <div class="box3"></div>
      <div class="box4"></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>
      .container {
        display: flex;
        width: 300px;
        height: 300px;
        background-color: orange;
      }

      .container .box3 {
        width: 100px;
        background-color: #f00;
        border-top: 30px solid #0f0;
      }

      .container .box4 {
        flex-grow: 1;
        background-color: purple;
        border: 30px solid skyblue;
      }
    </style>
  </head>
  <body>
    <!-- flex布局 -->
    <div class="container">
      <div class="box3"></div>
      <div class="box4"></div>
    </div>
  </body>
</html>
网易云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;
      }

      .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;
        overflow: hidden;
      }

      .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>
<!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;
      }

      .iconall_sprite {
        display: inline-block;
        background-image: url("./images/icon.png");
      }

      .iconall_sprite_radio {
        background-position: -31px -658px;
        width: 35px;
        height: 15px;
      }

      .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;
      }

      .recommend-section .list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 20px 5px;
      }

      .recommend-section .list .coverall {
        background-image: url("./images/coverall.png");
        background-repeat: no-repeat;
      }

      .recommend-section .list .iconall {
        background-image: url("./images/iconall.png");
        background-repeat: no-repeat;
      }

      .recommend-section .list .item {
        width: 140px;
        margin-bottom: 30px;
      }

      .recommend-section .list .item .top {
        background-color: red;
        position: relative;
      }

      .recommend-section .list .item .top .cover {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-position: 0 0;
      }

      .recommend-section .list .item .top .info {
        color: #fff;
        position: absolute;
        padding-left: 10px;
        left: 0;
        right: 0;
        bottom: 0;
        height: 27px;
        line-height: 27px;
        font-size: 12px;
        background-position: 0 -537px;
      }

      .recommend-section .list .item .top .info .icon-music {
        display: inline-block;
        position: relative;
        top: 1px;
        width: 14px;
        height: 11px;
        background-position: 0 -24px;
      }

      .recommend-section .list .item .top .info .count {
        margin-left: 4px;
      }

      .recommend-section .list .item .top .info .icon-play {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 10px;
        margin: auto 0;
        width: 16px;
        height: 17px;
        background-position: 0 0;
      }

      .recommend-section .list .item .bottom {
        display: block;
        font-size: 14px;
      }

      .recommend-section .list .item .bottom:hover {
        text-decoration: underline;
      }

      .recommend-section .list .item .bottom .icon-radio {
        position: relative;
        top: 2px;
      }

      .disc-section .content {
        height: 186px;
        margin: 20px 0;
        border: 1px solid #d3d3d3;
        box-sizing: border-box;
      }

      .disc-section .content .inner {
        position: relative;
        height: 100%;
        padding: 0 25px;
        box-sizing: border-box;
        border: 1px solid #fff;
        background-color: #f5f5f5;
      }

      .disc-section .inner .roller {
        display: flex;
        height: 100%;
        overflow: hidden;
      }

      .disc-section .inner .roller .list {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 10px;
        flex-shrink: 0;
      }

      .disc-section .roller .list .item {
        width: 118px;
        height: 150px;
        background: url("./images/index.png") no-repeat -260px 100px;
      }

      .disc-section .roller .list .item .album {
        position: relative;
      }

      .disc-section .roller .list .item .cover {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: url("./images/coverall.png") 0 -570px;
      }

      .disc-section .roller .item .album .play {
        display: none;
        position: absolute;
        right: 10px;
        bottom: 5px;
        width: 22px;
        height: 22px;
        background: url("./images/iconall.png") no-repeat 0 -85px;
      }

      .disc-section .roller .item .album:hover .play {
        display: block;
      }

      .disc-section .roller .list .item a {
        display: block;
        margin-top: 5px;
        padding-right: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .disc-section .roller .list .item a:hover {
        text-decoration: underline;
      }

      .disc-section .roller .list .item a.title {
        color: #000;
        margin-top: 8px;
      }

      .disc-section .roller .list .item a.anchor {
        color: #666;
      }

      .disc-section .inner .control {
        position: absolute;
        width: 17px;
        height: 17px;
        top: 72px;
        bottom: 0;
        background-image: url("./images/index.png");
      }

      .disc-section .inner .control-left {
        left: 5px;
        background-position: -260px -75px;
      }

      .disc-section .inner .control-right {
        right: 5px;
        background-position: -320px -75px;
      }

      .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;
        overflow: hidden;
      }

      .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 class="list">
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" href="#">短视频变装神曲【舞曲 卡点 慢摇】</a>
              </div>
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" href="#">短视频变装神曲【舞曲 卡点 慢摇】</a>
              </div>
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" href="#">短视频变装神曲【舞曲 卡点 慢摇】</a>
              </div>
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" href="#">
                  <i class="iconall_sprite iconall_sprite_radio icon-radio"></i>
                  短视频变装神曲【舞曲 卡点 慢摇】</a
                >
              </div>
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" href="#">短视频变装神曲【舞曲 卡点 慢摇】</a>
              </div>
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" href="#">短视频变装神曲【舞曲 卡点 慢摇】</a>
              </div>
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" href="#">
                  <i class="iconall_sprite iconall_sprite_radio icon-radio"></i>
                  短视频变装神曲【舞曲 卡点 慢摇】</a
                >
              </div>
              <div class="item">
                <div class="top">
                  <img src="./images/109951166884472394.jpg" alt="" />
                  <a class="cover coverall" href="#"></a>
                  <div class="info coverall">
                    <i class="icon-music iconall"></i>
                    <span class="count">62万</span>
                    <i class="icon-play iconall"></i>
                  </div>
                </div>
                <a class="bottom" 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 class="content">
              <div class="inner">
                <div class="roller">
                  <ul class="list">
                    <li class="item">
                      <div class="album">
                        <img src="./images/109951167316379898.jpg" alt="" />
                        <a href="#" class="cover"></a>
                        <a href="#" class="play"></a>
                      </div>
                      <a href="#" class="title">
                        NonfictionNonfictionNonfictionNonfiction
                      </a>
                      <a href="#" class="anchor"
                        >88rising88rising88rising88rising</a
                      >
                    </li>
                    <li class="item">
                      <div class="album">
                        <img src="./images/109951167316379898.jpg" alt="" />
                        <a href="#" class="cover"></a>
                        <a href="#" class="play"></a>
                      </div>
                      <a href="#" class="title">
                        NonfictionNonfictionNonfictionNonfiction
                      </a>
                      <a href="#" class="anchor"
                        >88rising88rising88rising88rising</a
                      >
                    </li>
                    <li class="item">
                      <div class="album">
                        <img src="./images/109951167316379898.jpg" alt="" />
                        <a href="#" class="cover"></a>
                        <a href="#" class="play"></a>
                      </div>
                      <a href="#" class="title">
                        NonfictionNonfictionNonfictionNonfiction
                      </a>
                      <a href="#" class="anchor"
                        >88rising88rising88rising88rising</a
                      >
                    </li>
                    <li class="item">
                      <div class="album">
                        <img src="./images/109951167316379898.jpg" alt="" />
                        <a href="#" class="cover"></a>
                        <a href="#" class="play"></a>
                      </div>
                      <a href="#" class="title">
                        NonfictionNonfictionNonfictionNonfiction
                      </a>
                      <a href="#" class="anchor"
                        >88rising88rising88rising88rising</a
                      >
                    </li>
                    <li class="item">
                      <div class="album">
                        <img src="./images/109951167316379898.jpg" alt="" />
                        <a href="#" class="cover"></a>
                        <a href="#" class="play"></a>
                      </div>
                      <a href="#" class="title">
                        NonfictionNonfictionNonfictionNonfiction
                      </a>
                      <a href="#" class="anchor"
                        >88rising88rising88rising88rising</a
                      >
                    </li>
                  </ul>
                  <ul class="list">
                    1
                  </ul>
                </div>
                <a href="#" class="control control-left"></a>
                <a href="#" class="control control-right"></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>

a元素嵌套块级元素

<!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>
      a {
        display: inline-block;
        background-color: #f00;
      }
    </style>
  </head>
  <body>
    <!-- 规范:行内非替换元素不要嵌套块级元素 -->
    <a href="#">
      <div>divdivdivdiv</div>
      <p>pppppp</p>
    </a>
  </body>
</html>
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,271评论 5 476
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,275评论 2 380
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,151评论 0 336
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,550评论 1 273
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,553评论 5 365
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,559评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,924评论 3 395
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,580评论 0 257
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,826评论 1 297
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,578评论 2 320
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,661评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,363评论 4 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,940评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,926评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,156评论 1 259
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,872评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,391评论 2 342

推荐阅读更多精彩内容