我正尝试将徽标添加到顶部导航栏中,如下所示:
我修改了xml文件addons\web\static\src\xml\menu.xml
并添加了这个div:
<div style="height: 100%;display: block;float: left;margin-right: 15px;margin-left: 15px;">
<img src="https://www.clubsportive.nl/wp-content/uploads/2018/12/logo-example.jpg" height=100%/>
</div>
在标头中是这样的:
<header t-name="Menu" style="background-color: #4c4c4c;">
<nav class="o_main_navbar">
<ul class="o_menu_apps"/>
<div style="height: 100%;display: block;float: left;margin-right: 15px;margin-left: 15px;">
<img src="https://www.clubsportive.nl/wp-content/uploads/2018/12/logo-example.jpg" height=100%/>
</div>
<a class="o_menu_brand" role="button"/>
<ul class="o_menu_sections" role="menu"/>
<ul class="o_menu_systray" role="menu"/>
</nav>
</header>
但是它破坏了一切。更改后,我只能看到白页。 控制台内部有错误:
怎么了?