如何在外部CSS取消特定的一个元素?

How to cancel specific one element at external CSS?

它使用外部 CSS 文件。(google MDL)

我只想取消 -webkit-flex 元素。
我怎样才能只取消那一行?

删除样式

如果要删除应用于元素的单个特定样式,只需将该样式设置为空字符串即可:

// This would remove your specific style (i.e. -webkit-flex-wrap)
$('{selector}').css('{style}','');

这应该完全删除样式 as mentioned in the documentation :

Setting the value of a style property to an empty string — e.g. $('#mydiv').css('color', '') — removes that property from an element if it has already been directly applied,

设置默认值

如果您只想将其设置为默认值,您可以将其值设置为 initial(即 display: initial),或者您应该考虑 想要的值 拥有并使用它。

考虑覆盖

如果您已经在使用这些样式,那么覆盖它们以定义您要使用的值可能会更容易:

.mdl-navigation {
     display: {your-preferred-value}!important;
}