notclass=iconnoti font-family SL-Simplified !important;如何修改以上这段CSS不对字体属性为inherit的元素以及该元素的父元素生效
您可以使用以下CSS代码来实现:
:not([class=icon]):not(i):not([style*="inherit"]), :not([class=icon]):not(i):not([style*="inherit"]) * { font-family: "SL-Simplified" !important; }
这将会对除了字体属性为inherit的元素和它们的父元素以外的所有元素应用该字体样式。
原文地址: http://www.cveoy.top/t/topic/e8c0 著作权归作者所有。请勿转载和采集!