.recommend { padding-top: 30px; padding-bottom: 30px; margin-top: 10px; } .recommend .head { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -webkit-justify-content: space-between; -moz-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: end; -webkit-align-items: flex-end; -moz-box-align: end; -ms-flex-align: end; align-items: flex-end; font-weight: bold; font-size: 24px; color: #333; } .recommend .head div span { margin-left: 10px; font-weight: normal; font-size: 16px; color: #999; } .recommend .head .el-link.el-link--default { font-size: 14px; color: #666; } .recommend .el-row { margin-top: 30px; } .recommend2 .el-row a { position: relative; display: block; border-radius: 8px; overflow: hidden; } .recommend2 .el-image { display: block; width: 100%; height: 224px; } .recommend2 .el-row a > div:nth-child(2) { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding-left: 25px; background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), to(#000)); background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, #000 100%); background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, #000 100%); background: -o-linear-gradient(top, rgba(0, 0, 0, 0.3) 0%, #000 100%); background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, #000 100%); font-weight: bold; font-size: 18px; line-height: 62px; color: #fff; } .recommend2 .el-row a:hover > div:nth-child(2) { opacity: 0; } .recommend2 .el-row a > div:nth-child(2) span { position: relative; padding-left: 15px; margin-left: 12px; font-weight: normal; font-size: 14px; } .recommend2 .el-row a > div:nth-child(2) span::before { content: "/"; position: absolute; bottom: 0; left: 0; z-index: 2; font-size: 12px; line-height: normal; } .recommend2 .el-row a > div:last-child { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; padding-top: 40px; padding-right: 20px; padding-left: 20px; background-color: rgba(0, 0, 0, 0.8); font-size: 14px; color: #fff; opacity: 0; -webkit-transition: 0.3s; -o-transition: 0.3s; -moz-transition: 0.3s; transition: 0.3s; } .recommend2 .el-row a:hover > div:last-child { opacity: 1; } .recommend2 .el-row a > div:last-child > div:first-child { font-weight: bold; font-size: 18px; } .recommend2 .el-row a > div:last-child > div:nth-child(2) { position: relative; padding-top: 10px; padding-bottom: 29px; font-size: 0; } .recommend2 .el-row a > div:last-child > div:nth-child(2)::after { content: "/"; position: absolute; bottom: 0; left: 10px; z-index: 2; font-size: 12px; } .recommend2 .el-tag { height: 29px; padding-right: 9px; padding-left: 9px; border-color: #6a6a6a; border-radius: 2px; background-color: #6a6a6a; font-size: 14px; line-height: 27px; color: #fff; } .recommend2 .el-tag ~ .el-tag { margin-left: 6px; } .recommend2 .el-row a > div:last-child > div:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin-top: 7px; overflow: hidden; line-height: 36px; } .recommend2 .el-col-6 { width: 20%; padding-right: 7px !important; padding-left: 7px !important; margin-bottom: 14px; }