我想在導航欄標題字段部分添加一個自定義徽標。我嘗試添加一個HTML腳本和它的工作,但徽標圖像不適合導航欄裏面親切 - 該標誌是由邊緣推下,菜單文字重疊的標識等如何在rmarkdown的導航欄標題欄中添加自定義徽標?
name: "my-website"
output_dir: .
navbar:
title: "I want to add custom logo here"
left:
- text: "Home"
我想在導航欄標題字段部分添加一個自定義徽標。我嘗試添加一個HTML腳本和它的工作,但徽標圖像不適合導航欄裏面親切 - 該標誌是由邊緣推下,菜單文字重疊的標識等如何在rmarkdown的導航欄標題欄中添加自定義徽標?
name: "my-website"
output_dir: .
navbar:
title: "I want to add custom logo here"
left:
- text: "Home"
您可以指定在YAML。例如,如果使用flexdashboard:
---
title: "My Website"
output:
flexdashboard::flex_dashboard:
theme: flatly
logo: LOGO.png
---
注意,不結垢的標誌圖像上進行的,所以應該在導航欄的尺寸範圍內完全適合(48個像素高默認「COSMO」的主題,其他主題可能會有略微不同的導航欄高度)。
你可以發佈一個工作最小化的Rmarkdown文檔。 –
也許你可以使用這個:https://stackoverflow.com/questions/38333691/r-markdown-putting-an-image-in-the-top-right-hand-corner-of-html-and-moving-tit – Lifka
謝謝你們倆。馬丁的回答與我合作。 ) –