Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.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
Html mpdf样式不适用于输入类型_Html_Css_Mpdf - Fatal编程技术网

Html mpdf样式不适用于输入类型

Html mpdf样式不适用于输入类型,html,css,mpdf,Html,Css,Mpdf,我正在使用HTML创建pdf 我想给输入类型赋予样式,但它不起作用 我有以下代码 $data='<!DOCTYPE html> <html> <head> <style> .formcontent{margin:0 auto;width:800px;} .inputType{border-top:0px;border-bottom:1px solid black;border-left:0px;border-right:0

我正在使用HTML创建pdf 我想给输入类型赋予样式,但它不起作用

我有以下代码

$data='<!DOCTYPE html>
<html> 
<head>
    <style>
    .formcontent{margin:0 auto;width:800px;}
    .inputType{border-top:0px;border-bottom:1px solid black;border-left:0px;border-right:0px;width:25%;}
    .custom_para{display:inline;}
    .content{
    margin-top: 4%;
    text-align:justify;
     text-justify:inter-word;
    }
</style>
</head>
<body>
   <div class="formcontent">
   <table width="800px">
    <tr>
   <td>
   <table width="800px">
   <tr>
   <td colspan="3">
   <h1 style="text-align:center;">LEASE</h1>
   <h2 style="text-align:center;"> LEASE LEASE LEASE LEASE</h2></td>
   </tr>
   <tr>
   <td colspan="3">
   <p class="custom_para">This Rental Agreement or Residential Lease shall evidence the complete terms and conditions under which the parties</p>
   <p class="custom_para">whose signatures appear below have agreed. Landlord/Lessor/Agent,<input type="text" class="inputType">,shall be</p>
   <p class="custom_para">referred to as "OWNER" and Tenant(s)/Lessee,<input type="text" class="inputType">,shall be referred to as</p>
   <p class="custom_para">"RESIDENT." As consideration for this agreement, OWNER agrees to rent/lease to RESIDENT and RESIDENT</p>
   <p class="custom_para">agrees to rent/lease from OWNER for use solely as a private residence, the premises located at <input type="text" class="inputType"></p>
   </td>
   </tr>
   </table>
   </td>
   </tr>
   </table>
</div>
</body>
</html>';

require_once('mpdf.php');
$mpdf = new mPDF();
$b=stripslashes($data);
$mpdf->WriteHTML($b);
$mpdf->Output();
$data='1!'
.formcontent{边距:0自动;宽度:800px;}
.inputType{边框顶部:0px;边框底部:1px纯黑色;边框左侧:0px;边框右侧:0px;宽度:25%;}
.custom_para{display:inline;}
.内容{
利润率最高:4%;
文本对齐:对齐;
文本对齐:词间对齐;
}
租赁
租赁

本租赁协议或住宅租赁应证明双方签订的完整条款和条件

签名如下的人已同意。出租人/出租人/代理人应

被称为“业主”,而承租人/承租人应被称为

“住户”。作为本协议的对价,业主同意向住户和住户出租/租赁

同意从业主处租赁/出租,仅作为私人住宅使用,该房产位于

'; 一次需要_('mpdf.php'); $mpdf=新的mpdf(); $b=条带斜杠($data); $mpdf->WriteHTML($b); $mpdf->Output();
我给样式的html输入类型,它是在html页面上工作,但 当我把它交给mpdf,因为它的造型不起作用


请帮助

我在通过MPDF库设计页面时遇到了同样的问题 但不幸的是,mpdf库并不支持所有设计(css/标记)
它支持基本的html标记和样式来设计mPDF。

使用这个是的,我同意,但应该是mPDF设计的替代方法