获取text在当前文本内容下应该尺寸: 宽度:text.preferredWidth 高度:text.preferredHeight 转载于:https://www.cnblogs.com/llstart-new0201/p/8722835.html