gpt4 book ai didi

r - 将 Logo 添加到 flexdashboard

转载 作者:行者123 更新时间:2023-12-05 01:15:39 34 4
gpt4 key购买 nike

我在将公司 Logo 添加到 flexdashboard 输出时遇到问题。我调查了这个问题并尝试使用相对路径,并将我的图像调整为 48x48。运行文档时,我仍然得到损坏的 html 图像。有没有人知道什么可能是错的?这是我的 YAML:

title: "title"
output:
flexdashboard::flex_dashboard:
orientation: columns
source_code: embed
logo: FoodBev.png
runtime: shiny

此外,图像在我的工作目录中。感谢您的帮助!

最佳答案

将 custom.css 文件添加到目录 ----> 然后,通过记事本编辑并添加以下代码:

img{
max-width:48px;
max-height:48px;
}

祝你好运

关于r - 将 Logo 添加到 flexdashboard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55444030/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com