ash*_*ash 4 r r-markdown flexdashboard
我在将公司徽标添加到 Flexdashboard 输出时遇到问题。我调查了这个问题并尝试使用相对路径,并将图像大小调整为 48x48。当我运行该文档时,我仍然收到损坏的 html 图像。有谁知道可能出了什么问题吗?这是我的 YAML:
title: "title"
output:
flexdashboard::flex_dashboard:
orientation: columns
source_code: embed
logo: FoodBev.png
runtime: shiny
Run Code Online (Sandbox Code Playgroud)
另外,该图像位于我的工作目录中。感谢您的帮助!
小智 9
将custom.css文件添加到目录---->than中,通过记事本编辑并添加以下代码:
img{
max-width:48px;
max-height:48px;
}
Run Code Online (Sandbox Code Playgroud)
祝你好运