【问题标题】:How to add inline css in html report using cucumber-html-reporter如何使用 cucumber-html-reporter 在 html 报告中添加内联 css
【发布时间】:2019-11-28 15:33:50
【问题描述】:

我正在使用 cucumber-html-reporter 生成一个 html 报告。我必须在电子邮件附件中发送此报告,但是当我这样做时,它会删除所有 css 并显示一个简单的文本报告。我研究了一下,发现我需要添加内联 css。有没有办法通过 cucumber-html-reporter 在报表中添加内联 css?

【问题讨论】:

    标签: html css cucumber


    【解决方案1】:

    **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>

    【讨论】:

    • 感谢 Chandan,当我下载附件时它工作了。
    • 没问题,请将答案标记为正确,以便其他人也可以使用。
    猜你喜欢
    • 2018-05-18
    • 1970-01-01
    • 1970-01-01
    • 2023-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-10
    相关资源
    最近更新 更多