문제

I have this simple css:

.privateMessageNumber{
    font-weight:bold;
    color:red;  
    font-size: large;
    background-image:url('/images/icon/mail.png');
    background-size: 37px 25px;
}

the question is will this css work in all browsers? I heard css2 didn't accept background-size, but what does that mean?

Does that mean that if user runs on browser that only support css2 then we can't use:

    background-size: 37px 25px;
도움이 되었습니까?

해결책

Take a look at 'Can I Use' whenever you're unsure if a property will work in the browsers you're supporting.

http://caniuse.com/#search=background-size

다른 팁

Most browsers have supported background-size for many moons but IE only since version 9.

No

The Mozilla Developer Network is another good reference for compatibility.

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