CSS3 calc() validation: Value Error : width Parse Error [duplicate]

柔情痞子 提交于 2019-12-18 19:45:14

问题


I need to validate a CSS3 file where I'm using the following code:

width:calc(96.3% - 312px)

It returns this error:

Value Error : width Parse Error - 312px)

My last choice is to use a Javascript function on page load and window resize to get the width value when it's possible using CSS3 (only for IE8 or older).


回答1:


This appears to be a bug in the validator. Your calc() syntax is valid. Don't worry about it.

Whenever you need to validate your CSS, remove just that declaration so it does not cause irrecoverable parse errors.



来源:https://stackoverflow.com/questions/24696512/css3-calc-validation-value-error-width-parse-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!