小编joh*_*ohn的帖子

使用 MPDF 页脚居中

我有这个pdf: 在此处输入图片说明

如何使页码居中而不是右对齐?这就是我添加页码的方式:

   include("mpdf60/mpdf.php");

   $mpdf=new \mPDF('c','A4','','' , 0, 0, 0, 0, 0, 0);

   $mpdf->setFooter('{PAGENO} of {nbpg}');
 $mpdf->WriteHTML($body);

       $mpdf->Output('Packing Slip.pdf','I');
Run Code Online (Sandbox Code Playgroud)

我怎样才能让它居中?它的“setFooter”?我正在使用 mpdf。

html php mpdf

3
推荐指数
2
解决办法
2914
查看次数

边框造型的圆圈是蜱虫

我有一个带有虚线边框的圆圈.但是,边框应该更像是垂直破折号,而不是点.

有没有办法使用css使边框与设计完全相同(垂直划线而不是粗实线)?

我想改变这个类:"OtherCaptionBorder"

我的css:

    .caption_circle{
    position: absolute;
    top: 450px;
    left: 7%;
    z-index: 10;
    padding-top: 35px;
    padding-bottom: 20px;
    color: #fff;
    text-align: center;
    height: 245px;
    width: 245px;
    background-color: #373737;
    opacity: 0.83;
    border-radius: 50%;
    display: inline-block;
    border-color: #fff;
    border-style: solid;
    border-width: 7px;
    font-family: open_sansregular;
    font-weight: 600;
}
.OtherCaptionBorder{
position: absolute;
    top: 2px;
    left: 1%;
    z-index: 10;
    padding-top: 35px;
    padding-bottom: 20px;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
    height: 228px;
    width: 228px;
    border-radius: 50%;
    border: 2px dotted #ffffff;
}
.InnerCircleText{
margin-top: 8px;
    font-size: …
Run Code Online (Sandbox Code Playgroud)

html css geometry svg stroke-dasharray

2
推荐指数
1
解决办法
300
查看次数

标签 统计

html ×2

css ×1

geometry ×1

mpdf ×1

php ×1

stroke-dasharray ×1

svg ×1