The calc attribute of css3 does not take effect

The calc attribute of css3 does not take effect

1. It means that the most common operation symbol does not add spaces
eg: width:calc(100%-100px) The
correct way to write eg: width:calc(100%-100px)
2. It depends on whether your calculation is missing the unit
eg: width:calc (500-100px)
Correct writing: eg: width:calc(500px-100px)

Guess you like

Origin blog.csdn.net/kzj0916/article/details/108819528
Recommended