이전 목록 다음
채택완료

background 축약에서 background 이미지 부분만 opacity 줄 수 있나요 ?

2024-09-19 (목) 18:31:34 4,875

background: url(https://giresvenin2.cafe24.com/web/upload/img/main_bg_img.png) center / cover no-repeat; 

여기서 저 이미지만 opacity 를 줄 수 있나요 ? 0으로 주고 싶은데 ㅠㅠ 

|

답변 2개

채택된 답변
+20 포인트

아래의 CSS 를 한번 참고를 해보세요.

background-image: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 1)), url(https://giresvenin2.cafe24.com/web/upload/img/main_bg_img.png);
background-position: center;
background-size: cover;
background-repeat: no-repeat;

답변을 작성하려면 로그인이 필요합니다.