CSS3 calc(100%-88px) not working in Chrome

后端 未结 3 468

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 Deve

3条回答
  •  一向
    一向 (楼主)
    2020-11-30 07:36

    Use -webkit prefix and spaces around the operator

    width: -webkit-calc(100% - 88px);
    width: -moz-calc(100% - 88px);
    width: calc(100% - 88px);
    

提交回复
热议问题