.A2_Goods { position: relative; :global { .logo { position: absolute; top: 20px; left: 50px; z-index: 3; width: 150px; pointer-events: none; } .toHomeBox { position: absolute; z-index: 3; right: 20px; bottom: 20px; cursor: pointer; width: 60px; height: 60px; background-image: url('../../assets/img/goods/toHome.png'); background-size: 100% 100%; } .goodsMain { width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; &::-webkit-scrollbar { /*滚动条整体样式*/ width: 0px; /*高宽分别对应横竖滚动条的尺寸*/ height: 0px; } .goodsBox { width: 100%; height: 100%; display: flex; position: relative; .goodsRow { border-right: 2px solid #c09e87; height: 100%; background-size: 100% 100%; position: relative; .rowShow { opacity: 1; pointer-events: auto; transition: all 1s; position: absolute; width: 100%; height: 100%; background-color: rgba(236, 215, 167, 0.6); .rowName { position: absolute; bottom: 150px; left: 60px; writing-mode: vertical-lr; font-size: 18px; letter-spacing: 4px; &::before { content: ''; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; background-image: url('../../assets/img/home/Ldian.png'); background-size: 100% 100%; } } .rowImg { position: absolute; bottom: 120px; right: 0; width: calc(100% - 100px); text-align: center; cursor: pointer; &>img { max-height: 450px; pointer-events: none; } } } .rowHover { opacity: 0; pointer-events: none; transition: all 1s; position: absolute; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)); .rowName { color: #fff; position: absolute; bottom: 150px; left: 60px; writing-mode: vertical-lr; font-size: 18px; letter-spacing: 4px; &::before { content: ''; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; background-image: url('../../assets/img/home/Ldian.png'); background-size: 100% 100%; } } .rowImg { position: absolute; bottom: 120px; right: 0; width: calc(100% - 100px); text-align: center; cursor: pointer; &>img { max-height: 450px; pointer-events: none; } } .rowTxt { color: #fff; position: absolute; top: 100px; left: 0; padding: 0 55px; .rowTxtRow { font-weight: 700; margin-bottom: 6px; } .rowTxtRowZ { font-size: 12px; margin-top: 20px; } } } &:nth-of-type(1n) { background-image: url('../../assets/img/goods/wenli1.jpg'); } &:nth-of-type(2n) { background-image: url('../../assets/img/goods/wenli2.jpg'); .rowImg { bottom: auto; top: 120px; } .rowHover { .rowName { bottom: auto; top: 120px; } .rowTxt { top: auto; bottom: 100px; left: 0; padding: 0 55px; } } } &:nth-of-type(3n) { background-image: url('../../assets/img/goods/wenli3.jpg'); } &:nth-of-type(4n) { background-image: url('../../assets/img/goods/wenli4.jpg'); } &:last-child { border: none; } &:nth-of-type(4) { .rowImg { bottom: auto; top: 200px; } } // 输入移入的效果 &:hover { .rowShow { opacity: 0; pointer-events: none; } .rowHover { opacity: 1; pointer-events: auto; } } } } } .curTitBox { border-radius: 4px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 370px; background-color: #726b56; .curClose { position: absolute; right: 15px; top: 15px; cursor: pointer; color: #fff; font-size: 24px; } .curImg { margin: 70px auto 30px; width: 213px; height: 213px; position: relative; &>img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 1; transition: all 2s; } } &>p { font-size: 14px; color: #fff; text-align: center; } } } }