.printcontainer {
  width: 100%;
  min-height: 400px;
  margin-top: 10px;
  page-break-after: always;
  background: #fff;
}
.printcontainer h2{
  text-align: center;
  margin-bottom: 30px;
}
.printtable {
  width: calc(100% - 0px) ;
  margin-top: 10px;
  min-height: 100px;
}

.printtable td {
  width: 25%;
  padding: 6px 6px;
}

.printtable thead tr {
  background: #e6f2ff;
}

@media print {
  @page {
    margin: 0.4cm 0.9cm 0.5cm 0.9cm;
    /* margin: 3.7cm 2.6cm 3.5cm; */
    /* 国家标准公文页边距 GB/T 9704-2012 */
    /* size: A4 landscape; */
    size: A4;

    /* size: A4 landscape; size: landscape横向，size: portrait;纵向，如果不设置，则页面有横向和纵向的选择框 */
    @bottom-center {
      content: "第" 5 "页";
    }

    @bottom-right {
      border-top: 1px solid gray;
      content: 1111111;
    }

    @top-center {
      content: "欢迎来到我的课堂";
    }
    
  }
}