allure报告自定义logo图片和文字
有时根据项目需要把allure报告的logo换成公司的,步骤如下:
1、将自定义的logo图片放到static文件夹中,尺寸大小100*100
D:\allure-2.13.9\plugins\custom-logo-plugin\static

2、编辑styles.css文件。

修改和增加如下css:
.side-nav__brand{
background: url('logo.jpg') no-repeat left center !important;
margin‐left: 10px;
margin-right:10px;
height: 90px;
background‐size: contain !important;
}
.side-nav__brand-text{
display: none;
}
.side-nav__brand span{
display:none;
}
.side-nav__brand:after{
content:"Zoe";
margin-left:60px;
line-height:90px;
}
3、重新生成报告后生效。


浙公网安备 33010602011771号