max-height如果之前在某些 CSS 规则中设置了该属性,如何将其重置为默认值?这不起作用:
max-height
pre { max-height: 250px; } pre.doNotLimitHeight { max-height: auto; // Doesn't work at least in Chrome }
将其重置为none:
none
pre { max-height: 250px; } pre.doNotLimitHeight { max-height: none; }
参考