Css 使用@page指令显示页码

Css 使用@page指令显示页码,css,asp.net-mvc-5,Css,Asp.net Mvc 5,我很难在CSS中使用@page指令。使用谷歌浏览器进行测试;VS2015,MVC5将开发 以下是我的CSS中的内容: @page { size: auto; /* auto is the initial value */ /* this affects the margin in the printer settings */ margin: 0.5in 0.5in 0.5in 0.5in; @bottom-right { cont

我很难在CSS中使用@page指令。使用谷歌浏览器进行测试;VS2015,MVC5将开发 以下是我的CSS中的内容:

@page
{ 
    size: auto;   /* auto is the initial value */ 

    /* this affects the margin in the printer settings */ 
    margin: 0.5in 0.5in 0.5in 0.5in;  
    @bottom-right
    {
    content: "Page " counter(page) " of " counter(pages);
   }
} 
更具体地说,页面计数(@右下角)没有显示。我是否应该在cshtml页面中添加其他内容以使其识别@page指令


我对此进行了研究,并获得了一些关于使用@page设置样式表的想法,但没有找到任何关于需要的cshtml设置的想法。

右下角的
来自哪里?我以前从未见过。如果在两个不同的答案上发现: