code
#ds-smilies-tooltip { max-width: 400px; min-width: 200px; width: -webkit-calc(100% - 130px); /* WebKit 536.3 (Chrome 19) and above, experimental */ width: calc(100% - 130px); /* final CSS3 compliant implementation; Firefox 16 and IE 9, and above */ }
introduce
-
When there is "+" and "-" in the expression, there must be spaces before and after it. For example, "widht: calc (12%+5em)", which is written without spaces, is wrong; -
It is better to add identifiers of different browsers to make them compatible
Reference Documents