(1)在ptl界面可以运用calc方法计算元素的宽度,用到了Calc()方法。
(2)js里用到下面的代码实时设置即可:
计算元素宽度的方法
原文:https://www.cnblogs.com/chendezhen/p/14620336.html