문제

I am not sure why I am getting these parse errors.

Error 1:

    Parse Error Opacity=0)

My CSS:

    .ui-helper-zfix { 
    width: 100%;
    height: 100%; 
    top: 0; 
    left: 0; 
    position: absolute; 
    opacity: 0; 
    filter:Alpha(Opacity=0); }

Error 2:

    Parse Error mask()

My CSS:

    .ui-datepicker-cover {
    position: absolute; 
    z-index: -1; 
    filter: mask(); 
    top: -4px; 
    left: -4px;

Any help would be appriciated.

도움이 되었습니까?

해결책

According to this Mozilla document, neither mask() nor Alpha() are defined filter functions. Also, the article implies that filter support is still experimental, which may be why the w3c validator doesn't like it.

In my experience, the w3c validator is pretty good about explaining why things fail. Check for additional error or description messages.

For the alpha effect, you may try: filter: opacity(0%)

This other stackoverflow question has additional information.

다른 팁

The filter property is not standard, but a Microsoft addition. That is why CSS parsers throw you those errors.

On another note: Are you targetting really old versions of IE?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top