filter:alpha 투명도 조절에 대한 질문 좀 드릴께요
뽀글이
2023.04.01
caption이라는 클래스에 50%씩 아래 소스처럼 투명도를 줬거든요근데 그 안에 span태그써서 이미지를 넣었는데요 이미지는 투명도를 빼고 싶은데같이 투명도가 적용되네요;;별도로 투명도 조절해줘야 하나요??조언 부탁 드립니다.
.caption { width:206px; height:208px; background:#000; color:#fff; font-weight:bold; /* fix it at the bottom */ position:absolute; bottom:-1px; /* fix IE issue */ left:0;
/* hide it by default */ display:none;
border-radius:10px;
/* opacity setting */ filter:alpha(opacity=50); /* ie */ -ms-filter: alpha(opacity=50) -moz-opacity:0.5; /* old mozilla browser like netscape */ -khtml-opacity: 0.5; /* for really really old safari */ opacity: 0.5; /* css standard, currently it works in most modern browsers like firefox, */
}
.caption span img{ border:5px solid yellow;}