CCSS calc()值deble debugging
确保您的公式遵守以下规则:White space is required on both sides of and - operators.
How to Debug Calculated Value:
Use javascript获取特定属性的计算值:
var elem = document.querySelector(“。box”); var prop = window.getComputedStyle(elem,null).getPropertyValue(“ - variable”); var Height = window.getComputedStyle(elem,null).getPropertyValue(“ height”); console.log(prop); console.log(height);免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3