gpt4 book ai didi

html - 如何在 rmarkdown 的导航栏标题字段中添加自定义 Logo ?

转载 作者:可可西里 更新时间:2023-11-01 13:22:53 24 4
gpt4 key购买 nike

我想在导航栏标题字段部分添加自定义 Logo 。我尝试添加一个 html 脚本并且它起作用了,但是 Logo 图像并没有很好地适合导航栏 - Logo 被边距推开,菜单文本与 Logo 重叠,等等。

name: "my-website"
output_dir: .
navbar:
title: "I want to add custom logo here"
left:
- text: "Home"

最佳答案

好吧,我自己弄了一个网站。这对我有用:

name: "my-website"
navbar:
title: "<img id=\"logo\" style=\"width: 30px;\" src=\"dog.gif\" />"
left:
- text: "Home"
href: index.html
- text: "About"
href: about.html

enter image description here

关于html - 如何在 rmarkdown 的导航栏标题字段中添加自定义 Logo ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44204702/

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