当前位置:网站首页>详细讲解修改allure报告自定义的logo和名称中文
详细讲解修改allure报告自定义的logo和名称中文
2022-08-08 10:25:00 【~heart将心比心】
一、 找到allure报告的安装路径:我的是在D盘:
D:\ruanjian\allure\allure-2.18.0\plugins\custom-logo-plugin\static
然后找到下图位置,将需要的图片放在这个文件夹里面,如果你们第一次进来是没有的,可以命名为:allure——logo.jpg
二、然后在修改取值文件信息,还是这个文件夹,修改styles.css文件
也可以修改图片已经文字的大小,如图所示
.side-nav__brand {
background: url('allure_logo.jpg') no-repeat left center !important;
margin-left: 10px;
height: 50px;
background-size: contain !important;
}
.side-nav__brand span{
display: none;
}
.side-nav__brand:after{
content: "XINXIN";
margin-left: 20px;
}
如果content的值是中文的话,需要转成unicode
可以参考:css里content使用中文乱码,以及中文转unicode怎么在css样式里使用?_凯小默的博客-CSDN博客_content中文乱码
三、然后点击 config ;在 打开 allure.yml 加上 - custom-logo-plugin ,保存
四、在运行allure就可以看到修改的logo和名称了。
边栏推荐
- 面试突击72:输入URL之后会执行什么流程?
- vs2019+boost library (boost_1_67_0) installation
- MongoDB是什么,怎么用?
- nacos安装
- English token preprocessing, used to process English sentences into words
- Multi-scalar multiplication: state of the art & new ideas
- 便利贴--48{再次,适配屏幕宽高class}
- Flutter Game Tutorial Recreate the famous T-Rex game with Flutter and Flame
- idea installation steps
- Solutions and ideas for the problem that Loadrunner's recording event is 0
猜你喜欢
随机推荐
shell脚本知识记录
功夫再高也怕菜刀,产品经理的那些事
典型的NoSQL数据库有哪些呢?
使用文档数据库的目的是什么呢?
NoSQL数据库有哪些优势吗?又有哪些劣势呢?
vs2019+boost library (boost_1_67_0) installation
文档数据库中的文档可以有相同的数据结构嘛?
Dubins曲线学习笔记及相关思考
Redis 定长队列的探索和实践
go调度原理
Loadrunner12.0.2安装及中文语言包安装(汉化)
Hystrix熔断器
STM32F103ZE+SHT30检测环境温度与湿度(IIC模拟时序)
简单混合运算计算器
Leetcode 617. 合并二叉树
IR(红外遥控)基本原理
Mobile/Embedded-CV Model-2018: MobileFaceNets
苹果开发者账号申请流程完整版
定时任务框架Quartz-(一)Quartz入门与Demo搭建
键值数据库中可以对值进行查询嘛?