将徽标添加到 flexdashboard
Add logo to flexdashboard
我在将公司徽标添加到 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;
}
祝你好运
我在将公司徽标添加到 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;
}
祝你好运