项目 所有使用calc()计算宽高的时候 只要在开发工具右侧 调整元素的其他属性 都会令 height:calc()和 width:calc()失效
如下图:
调整其他属性后 例如 修改border属性之后:
我试了一下 其他 height使用计算高度的时候也会出现该问题
开发工具版本:
开发工具问题 css 的计算属性 calc() 在开发工具调试出现问题 ?Development tool problem css calculation attribute calc() has a problem in development tool debugging?
开发工具问题 css 的计算属性 calc() 在开发工具调试出现问题 ?项目 所有使用calc()计算宽高的时候 只要在开发工具右侧 调整元素的其他属性 都会令 height:calc()和 width:calc()失效
如下图:
调整其他属性后 例如 修改border属性之后:
我试了一下 其他 height使用计算高度的时候也会出现该问题
开发工具版本:
When using calc() to calculate the width and height of a project, if you adjust other attributes of the element on the right side of the development tool, the height: calc() and width: calc() will be invalid, as shown in the following figure: after adjusting other attributes, for example, after modifying the border attribute: I have tried to use calc() for other heights, this problem will also occur when using the calculation height of development tool version:
回答:
弄一个 [ 能复现问题的简单的 ] 代码片段
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
顺便 希望恢复 开发工具的 退回版本功能
有时候更新 会遇到 开发不下去的情况 希望可以退回版本
用100vw替换100%呢还会有问题吗