Remove/reset CSS behavior property

后端 未结 3 1695
天命终不由人
天命终不由人 2021-01-07 16:18

Is it possible to remove the IE-specific behavior CSS property via a more specific rule or the !important declaration? Example:

.a-rule
{
  beha         


        
3条回答
  •  暖寄归人
    2021-01-07 17:08

    The default value is "none". See:

    What is the *correct* way to unset the behavior property in CSS?

    The solution:

    .a-rule
    {
      behavior: url(/some.htc);
    }
    .a-rule.more-specific
    {
      behavior: none;
    }
    

提交回复
热议问题