Tôi gặp sự cố khi tạo phần tử trong suốt có phần tử con. Sử dụng mã này phần tử con nhận giá trị độ mờ từ phần tử gốc.Đặt lại độ mờ của phần tử con - Trình duyệt Maple (Ứng dụng Samsung TV)
Tôi cần đặt lại/đặt độ mờ của phần tử của con thành giá trị tùy ý. Trình duyệt tham chiếu là Maple Browser (for a Samsung TV Application)
.
.video-caption {
position: absolute;
top:50px;
width: 180px;
height: 55px;
background-color: #000;
-khtml-opacity:.40;
-moz-opacity:.40;
-ms-filter:"alpha(opacity=40)";
filter:alpha(opacity=40);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0.4); /*just for testing*/
opacity:.40;
}
.video-caption > p {
color: #fff !important;
font-size: 18px;
-khtml-opacity:1;
-moz-opacity:1;
-ms-filter:"alpha(opacity=100)";
filter:alpha(opacity=100);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=1);
opacity:1;
}
EDIT Markup
<div> <img id="videothb-1" src="https://xxxxx/splash.jpg"> <div class="video-caption"> <p>Description here</p> </div> </div>
Có vẻ như nó sẽ hoạt động ... – Ben
Tôi có thể tạo một phần tử riêng cho nó. Hãy cho tôi biết mặc dù của bạn .. nhờ – GibboK
Trình duyệt Maple sử dụng công cụ Gecko hỗ trợ độ mờ chỉ tốt nên nó sẽ hoạt động. Đánh dấu của bạn là gì? – Kyle