简体   繁体   English

如何使用Cucumber-html-reporter在html报表中添加内联CSS

[英]How to add inline css in html report using cucumber-html-reporter

I am generating a html report using cucumber-html-reporter. 我正在使用Cucumber-html-reporter生成html报告。 I have to send this report in an email attachment, but when i do so, it removes all css and shows a simple text report.I researched a little and found out that i need to add inline css for the same. 我必须通过电子邮件附件发送此报告,但是当我这样做时,它会删除所有CSS并显示一个简单的文本报告。我进行了一些研究,发现我需要为此添加内联CSS。 Is there any way to add inline css in report through cucumber-html-reporter? 有没有什么方法可以通过Cucumber-html-reporter在报表中添加内联CSS?

 **See if you have simple HTML elements you can simply write with "style". <div style="border:1px solid #ddd;"> This will work fine please try once adding like this. </div> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM