I noticed that my usage of the CSS3 calc()
function as the unit for width
is not working in the latest version of Chrome.
In the Chrome Developer tools, the rule with calc()
has a strikethrough through it and an exclamation mark in a yellow triangle to the left of it. This is signaling that the property or value is not recognized.
How do I get it to work in modern browsers? Because it is a value and not a property, where do the vendor prefixes go?
Update:
When I say it doesn't work, I mean that Chrome Dev Tools is saying that it is not recognizing my usage of it width: calc(100%-88px);
. How do I know it is not recognizing it? Because of the strikethrough and the yellow triangle icon next to the style rule in chrome dev tools.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…