Dompdf图像无法在第二页上呈现

时间:2016-09-12 12:56:04

标签: php html css dompdf

我使用DOMPDF作为laravel。为什么图像只在第一页上呈现? 在第一页上,您可以看到图像,在其他页面上它只是一个白框



<style>
* {
		font-family: times;
		padding: 0;
		margin: 0
	}
	div.breakNow {
		page-break-inside: avoid;
		page-break-after: always;
	}
	</style>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: DDF9440B15F6287</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 1925455A7E8DF36</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 068C168D5B4A076</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 657FD979CB889CC</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: EEA674085288E6C</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<div class="breakNow"></div>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 62C2C17DE6D7956</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 4D156F3F00986EC</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 577BEC6900D05FA</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: AEB1D9C27F93B39</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 0E02010791FF539</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<div class="breakNow"></div>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 98405C583D9D74E</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: DEF3FC6B40F559E</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: ACA8ED32812F15C</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 28B8BD12A56DEA9</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: E8C93999919A727</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<div class="breakNow"></div>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: 0140CCC5F22F506</strong></p></td>
		</tr>
	  </tbody>
	</table>
	<table style="height: 142px; width: 784.967px;" border="1" cellspacing="0" cellpadding="10px">
	  <tbody>
		<tr style="width: 400px; height: 48px;">
		  <td style="width: 580px; height: 48px;"><p>First test Concert</p>
			<p><strong>01/01/1970</strong></p>
			<p>15 $.</p>
			<p>VIP</p></td>
		  <td style="width: 188.967px; height: 67px;" rowspan="2" align="center"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://photos.nbeads.com/1/3/6/146_146_136304D9-CE0A-4943-AA68-4DC1140F10EB.JPG" alt="" width="140" height="140" /></td>
		</tr>
		<tr style="height: 25px;">
		  <td style="width: 580px; height: 25px;"><p style="text-align: center;"><strong>&nbsp;code: F4CAA74AD166221</strong></p></td>
		</tr>
	  </tbody>
	</table>
&#13;
&#13;
&#13;

Screenshot

0 个答案:

没有答案
相关问题