/* basic calc */ .simpleBlock { width: calc(100% - 100px); } /* calc in calc */ .complexBlock { width: calc(100% - 50% / 3); padding: 5px calc(3% - 2px); margin-left: calc(10% + 10px); }
转载于:https://www.cnblogs.com/xuyuchen/p/8283033.html
转载于:https://www.cnblogs.com/xuyuchen/p/8283033.html