Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.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
页面:第一个css选择器不';我不适合打印_Css_Reactjs_Printing_Styles - Fatal编程技术网

页面:第一个css选择器不';我不适合打印

页面:第一个css选择器不';我不适合打印,css,reactjs,printing,styles,Css,Reactjs,Printing,Styles,我需要在第一页上向下移动我的表格标题(可打印)。这种方式对我不起作用 <style media="print"> {` @media print { @page :first { .grid-column-header { top: 150px; } } .grid-column-header { display:inline-block;

我需要在第一页上向下移动我的表格标题(可打印)。这种方式对我不起作用

<style media="print"> {`
    @media print {
      @page :first {
        .grid-column-header {
          top: 150px;
        }
      }
     .grid-column-header {
        display:inline-block;
        position: fixed;
        top: 0;
        font-weight: 800;
        color: rgba(0, 0, 0, 0.8);
        background-color: #fff;
        border-left: 1px solid rgba(0, 0, 0, 0.8);
      }
    }
 `}
</style>
{`
@媒体印刷品{
@页码:第一页{
.网格列标题{
顶部:150px;
}
}
.网格列标题{
显示:内联块;
位置:固定;
排名:0;
字号:800;
颜色:rgba(0,0,0,0.8);
背景色:#fff;
左边框:1px实心rgba(0,0,0,0.8);
}
}
`}