我目前正在为Apple TV开发一个 TVML 应用程序,并且我一直在尝试对一些元素进行一些样式调整。
我已经能够遵循TVML 文档,并且通过执行以下操作成功地将文本颜色从白色更改为黑色:
<description style="color: rgba(0, 0, 0)">
Selvage banjo authentic messenger bag, pork belly occupy heirloom...etc
</description>
现在,根据文档,我想通过更改其他样式(例如font-weight
tolight
和font-size
.
以下是我这样做的一些尝试:
1
<description style="color: rgba(0, 0, 0); font-weight: light">
text goes here
</description>
2
<description style="color: rgba(0, 0, 0) font-weight: light">
text goes here
</description>
3
<description style="font-weight: light">
text goes here
</description>
4
<description font-weight="light">
text goes here
</description>
不幸的是,我无法弄清楚如何让它工作。我正在使用descriptiveAlertTemplate
.