【问题标题】:How to make Surface size to fit text content如何使 Surface 大小适合文本内容
【发布时间】:2014-05-29 06:26:45
【问题描述】:

我在这里遵循了这个指南

http://famo.us/guides/dev/layout.html

大多数示例将size 显示为undefined,表示它的最大宽度/高度或固定像素数。

有没有办法指定大小以便它包裹和适合内容文本?

【问题讨论】:

    标签: javascript css famo.us


    【解决方案1】:

    我找到了答案。您需要将 true 设置为值。例如

    size: [undefined, true]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-18
      • 1970-01-01
      • 2020-09-01
      • 2018-04-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多