Difference between behavior and -ms-behavior

I don't understand the difference between behavior

and -ms-behavior

. I thought the behavior was already only for Microsoft Internet Explorer, so why is there a vendor prefix version?

Does it make sense to use both or just -ms-behavior

?

+3


source to share


2 answers


Internet Explorer

versions 5 and above support behavior property

.

Internet Explorer version 8 supports the syntactically correct extended provider format for ms-behavior.



In most cases, you'll need behavior

if you do not want to completely get IE8 versions

to work standard mode

. Then you have to use ms-behavior

. But adding both won't hurt you at all, and it's probably good practice.

+2


source


Windows Internet Explorer 8 . Attribute -ms-behavior

is a CSS extension and can be used synonymously for behavior in . IE8 Standards mode



More info on https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx

+1


source







All Articles