Less aggressive compilation with CSS3 calc

前端 未结 4 1552
臣服心动
臣服心动 2020-11-22 05:18

The Less compilers that I\'m using (OrangeBits and dotless 1.3.0.5) are aggressively translating

body { width: calc(100% - 250px - 1.5em); }
<
4条回答
  •  独厮守ぢ
    2020-11-22 05:47

    There is several escaping options with same result:

    body { width: ~"calc(100% - 250px - 1.5em)"; }
    body { width: calc(~"100% - 250px - 1.5em"); }
    body { width: calc(100% ~"-" 250px ~"-" 1.5em); }
    

提交回复
热议问题