자식도 투명될 때 해결법
#rcm{text-align: center;}
#rcm h2{font:36px 'jalnan';padding-top: 70px;}
#rcm .wrap > p{font-size:18px; margin-bottom: 30px;}
#rcm li a p{width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
#rcm li a:hover p{background:rgba(0,0,0,0.7); }
#rcm span{color:#FFF; font-size:30px; font-weight: bold;}
#rcm li{background: #000; float:left; width: 280px; height: 400px; margin-right: 20px; border-radius: 20px; overflow: hidden;}
#rcm li:nth-child(1) a{background: url("../images/rcm_img1.png")no-repeat center;}
#rcm li:nth-child(2) a{background: url("../images/rcm_img2.jpg")no-repeat center;}
#rcm li:nth-child(3) a{background: url("../images/rcm_img3.png")no-repeat center;}
#rcm li:nth-child(4) a{background: url("../images/rcm_img4.png")no-repeat center;}
#rcm a:visited, #rcm a:link{display: block; height: 100%; display: flex; justify-content: center; align-items: center; transition:0.3s;}
#rcm a:focus, #rcm a:active, #rcm a:hover{transform: scale(1.1);}
#rcm{text-align: center;}
#rcm h2{font:36px 'jalnan';padding-top: 70px;}
#rcm p{font-size:18px; margin-bottom: 30px;}
#rcm span{color:#FFF; font-size:26px; font-weight: bold;}
#rcm li{background: #000; float:left; width: 280px; height: 400px; margin-right: 20px; border-radius: 20px; overflow: hidden;}
#rcm li:nth-child(1) a{background: url("../images/rcm_img1.png")no-repeat center;}
#rcm li:nth-child(2) a{background: url("../images/rcm_img2.jpg")no-repeat center;}
#rcm li:nth-child(3) a{background: url("../images/rcm_img3.png")no-repeat center;}
#rcm li:nth-child(4) a{background: url("../images/rcm_img4.png")no-repeat center;}
#rcm a:visited, #rcm a:link{display: block; height: 100%; display: flex; justify-content: center; align-items: center; transition:0.3s;}
#rcm a:focus, #rcm a:active, #rcm a:hover{transform: scale(1.1); opacity: 0.7;}
vw
vh
와 퍼센트의 차이점wrap
1200px ,100%
ul → 100%
li → 4개 각각 25%
.wrap
값 max
, min
사용