Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Can';不要在HtmlRenderer.PdfSharp ASP.NET Core中使用分页符 H1 氢_C#_Asp.net_Asp.net Core_Html Renderer - Fatal编程技术网

C# Can';不要在HtmlRenderer.PdfSharp ASP.NET Core中使用分页符 H1 氢

C# Can';不要在HtmlRenderer.PdfSharp ASP.NET Core中使用分页符 H1 氢,c#,asp.net,asp.net-core,html-renderer,C#,Asp.net,Asp.net Core,Html Renderer,我不能使用HTML格式的分页符,它将被转换成PDF格式,我尝试了各种方法,但结果没有改变,当我使用br标记时,它工作,但当输入样式分页符时,它不工作。 我想在h1和h2之间拆分页面 你可以参考,格雷谢134所说的。你可以参考,格雷谢134所说的。 <html> <body style='margin: 0; padding: 0 50px; font-size: 12px;'> <div style='page-break-after: al

我不能使用HTML格式的分页符,它将被转换成PDF格式,我尝试了各种方法,但结果没有改变,当我使用
br
标记时,它工作,但当输入样式分页符时,它不工作。
我想在h1和h2之间拆分页面

你可以参考,格雷谢134所说的。你可以参考,格雷谢134所说的。
<html>
    <body style='margin: 0; padding: 0 50px; font-size: 12px;'>
        <div style='page-break-after: always;'>
            <h1>H1</h1>
        </div>
        <div>
            <h2>H2</h2>
        </div>
    </body>
</html>