如何在 Rebol 中创建多行图形横幅(只能创建一行)?

发布于 2024-08-14 12:41:37 字数 206 浏览 1 评论 0原文

这可行:

view layout [
    box white 728x90 effect reduce [ 'gradient 0x1 sky] 
    font [align: 'center size: 40 color: red] "Your banner text"
]

但是如何添加其他行?

谢谢。

This works:

view layout [
    box white 728x90 effect reduce [ 'gradient 0x1 sky] 
    font [align: 'center size: 40 color: red] "Your banner text"
]

But how do I add other lines ?

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

胡渣熟男 2024-08-21 12:41:37

在文本中包含一个新行:

view layout [
    box white 728x90 effect reduce [ 'gradient 0x1 sky] 
    font [align: 'center size: 40 color: red] "Your banner text^/on two lines"
]

如果您不习惯在 Rebol 中“转义”字符,这与在 C 或 Java 或 JavaScript 或......中这样做非常相似。Rebol

核心手册中的此页面包含所有详细信息 - http://www.rebol.com/docs/ core23/rebolcore-16.html#section-2.11

Include a new line in your text:

view layout [
    box white 728x90 effect reduce [ 'gradient 0x1 sky] 
    font [align: 'center size: 40 color: red] "Your banner text^/on two lines"
]

If you aren't used to "escaping" characters in Rebol, it's pretty similar to doing so in C or Java or JavaScript or .....

This page in the Rebol Core Manual has all the details - http://www.rebol.com/docs/core23/rebolcore-16.html#section-2.11

牵强ㄟ 2024-08-21 12:41:37

通过阅读此内容,您应该能够弄清楚如何获得具有不同字体大小和颜色的多行 - http://www.rebol.com/how-to/subpanels.html

You should be able to work out how to get multiple lines with different font sizes and colours by reading this - http://www.rebol.com/how-to/subpanels.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文