* { margin: 0; padding: 0; list-style: none; text-decoration: none; box-sizing: border-box; } /* 头部样式 */ #header { width: 100%; height: 72px; box-shadow: 0 12px 16px rgba(220,220,220,.5); } #header .content { width: 1200px; height: 100%; margin: 0 auto; } #header .content .left { width: 332px; height: 100%; float: left; } #header .content .left .pictures { width: 92px; height: 45px; float: left; margin-top: 14px; } #header .content .left .pictures img { width: 100%; height: 100%; } #header .content .left .address { width: 63px; height: 100%; float: left; margin-left: 52px; line-height: 72px; } #header .content .left .address .icon-dizhi { font-size: 12px; float: left; } #header .content .left .address .icon-xiajiantou { font-size: 9px; float: left; margin-left: 3px; } #header .content .left .address span { float: left; margin-left: 7px; } #header .content .left .list { width: 88px; height: 100%; float: left; margin-left: 37px; line-height: 72px; } #header .content .left .list ul { overflow: hidden; } #header .content .left .list ul li { float: left; } #header .content .left .list ul li:last-child { float: right; } #header .content .left .list ul li a { color: #000; } #header .content .left .list ul li:hover a { color: #FF1268; } #header .content .left .list ul li:first-child a { color: #FF1268; } #header .content .right { width: 585px; height: 100%; float: right; } #header .content .right .search { width: 401px; height: 100%; float: left; } #header .content .right .search input { width: 100%; height: 46px; margin-top: 12px; border-radius: 20px; background: #f8f8f8; border: 1px solid #f8f8f8; outline: none; padding-left: 33px; } #header .content .right .search input:hover { border: 1px solid #FF1268; } #header .content .right .list { width: 145px; height: 100%; float: right; } #header .content .right .list .listItem { width: 61px; height: 100%; float: left; } #header .content .right .list .listItem:hover .title { color: #FF1268; } #header .content .right .list .listItem:last-child { margin-left: 23px; } #header .content .right .list .listItem img { width: 26px; height: 26px; float: left; margin-top: 21px; } #header .content .right .list .listItem .title { width: 32px; height: 100%; float: right; line-height: 72px; } /* 主体样式 */ #main .content { width: 1200px; margin: 0 auto; } #main .content .banner { width: 100%; height: 320px; background: url('./images/4.avif'); } #main .content .list { width: 1200px; height: 120px; margin-top: 12px; border: 1px solid #EBEBEB; } #main .content .list dl { width: 119.8px; height: 100%; float: left; } #main .content .list dl dt { width: 48px; height: 48px; margin-top: 15px; margin-left: 36px; background: url('./images/5.png'); background-position: 0 8px; background-size: cover; } #main .content .list dl:nth-child(2) dt { background: url('./images/5.png'); background-position: 0 -59px; background-size: cover; } #main .content .list dl:nth-child(3) dt { background: url('./images/5.png'); background-position: 0 -118px; background-size: cover; } #main .content .list dl:nth-child(4) dt { background: url('./images/5.png'); background-position: 0 -177px; background-size: cover; } #main .content .list dl:nth-child(5) dt { background: url('./images/5.png'); background-position: 0 -231px; background-size: cover; } #main .content .list dl:nth-child(6) dt { background: url('./images/5.png'); background-position: 0 -290px; background-size: cover; } #main .content .list dl:nth-child(7) dt { background: url('./images/5.png'); background-position: 0 -352px; background-size: cover; } #main .content .list dl:nth-child(8) dt { background: url('./images/5.png'); background-position: 0 -412px; background-size: cover; } #main .content .list dl:nth-child(9) dt { background: url('./images/5.png'); background-position: 0 -473px; background-size: cover; } #main .content .list dl:last-child dt { background: url('./images/5.png'); background-position: 0 -530px; background-size: cover; } #main .content .list dl dd { width: 120px; height: 22.5px; margin-top: 7px; text-align: center; } #main .content .list dl:hover dd { color: #FF1268; } #main .content .type { width: 100%; height: 457px; padding: 20px; margin-top: 12px; border: 1px solid #EBEBEB; } #main .content .type .top { width: 100%; height: 40px; } #main .content .type .top .left { width: 500px; height: 100%; float: left; font-size: 24px; color: #111; line-height: 40px; } #main .content .type .top .right { width: 56px; height: 100%; float: right; font-size: 14px; color: #9B9B9B; margin-right: 23px; } #main .content .type .top .right:hover { color: #FF1268; } #main .content .type .bottom .left { width: 272px; height: 360px; float: left; } #main .content .type .bottom .left .pictures { width: 272px; height: 360px; } #main .content .type .bottom .left .pictures img { width: 100%; height: 100%; } #main .content .type .bottom .right { width: 870px; height: 360px; float: right; } #main .content .type .bottom .right .rightItem { width: 273px; height: 160px; float: left; margin-left: 20px; } #main .content .type .bottom .right .rightItem:first-child,#main .content .type .bottom .right .rightItem:nth-child(4){ margin-left: 0; } #main .content .type .bottom .right .rightItem:nth-child(6), #main .content .type .bottom .right .rightItem:nth-child(4), #main .content .type .bottom .right .rightItem:nth-child(5) { margin-top: 40px; } #main .content .type .bottom .right .rightItem .pictures { width: 118px; height: 160px; float: left; } #main .content .type .bottom .right .rightItem .pictures img { width: 100%; height: 100%; } #main .content .type .bottom .right .rightItem .desc { width: 138px; height: 100%; float: right; } #main .content .type .bottom .right .rightItem .desc .title { color: #4A4A4A; font-size: 14px; /* 溢出隐藏*/ /* overflow: hidden; */ /* 展示省略号 */ /* text-overflow: ellipsis; */ /* 强制不换行 */ /* white-space: nowrap; */ /* 超出两行显示省略号 */ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } #main .content .type .bottom .right .rightItem .desc .title:hover { color: #FF1268; } #main .content .type .bottom .right .rightItem .desc .venue { color: #9B9B9B; font-size: 12px; margin-top: 12px; } #main .content .type .bottom .right .rightItem .desc .venue:hover { color: #FF1268; } #main .content .type .bottom .right .rightItem .desc .time { color: #9B9B9B; font-size: 12px; } #main .content .type .bottom .right .rightItem .desc .time:hover { color: #FF1268; } #main .content .type .bottom .right .rightItem .desc .price { color: #FF1268; margin-top: 52px; } #main .content .type .bottom .right .rightItem .desc .price span { font-size: 12px; color: #FF1268; } /* 页尾样式 */ #footer { width: 100%; height: 347px; background: #f8f8f8; margin-top: 30px; } #footer .content { width: 1200px; height: 100%; background: pink; margin: 0 auto; }