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?
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                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 Explorerversions 5 and above support thebehavior property.The majority of the time you only need
behavior, unless you want to totally forceIE8 versionsto 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.