I don't understand the difference between behavior
and -ms-behavior
. I thought behavior was already only for Microsoft's Internet Explorer, so why is there a vendor prefix version?
Does it make any sense to use both or just -ms-behavior
?
I don't understand the difference between behavior
and -ms-behavior
. I thought behavior was already only for Microsoft's Internet Explorer, so why is there a vendor prefix version?
Does it make any sense to use both or just -ms-behavior
?
Windows Internet Explorer 8. The -ms-behavior
attribute is an extension to CSS, and can be used as a synonym for behavior in IE8 Standards mode
.
Check https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx for more information
Internet Explorer
versions 5 and above support thebehavior property
.The majority of the time you only need
behavior
, unless you want to totally forceIE8 versions
to run instandard mode
. Then you should usems-behavior
. But adding both doesn't hurt you at all and it probably is a good practice anyways.