当我将它回显到屏幕时,我试图使我的outfile成为可滚动的。这是代码,我是新的,但我只需要可滚动的数据,而不是我加粗的部分。
<table border=\"0\" class=\"text-small_plus\" width='100%' bgcolor=white bordercolor='black' cellspacing='2' cellpadding='2' style='border-collapse:collapse;
border:none;mso-border-alt:solid windowtext .5pt;mso-padding-alt:0in 5.4pt 0in 5.4pt'>");
if(!empty($assignment_file)){
echo ("<tr valign=\"bottom\" bgcolor=\"silver\" style=\"font-weight: bold;\"><td width=\"10\">#</td><td>Clt File Num</td><td>Clt Addr</td><td>Clt City</td>
<td>Clt Zip</td><td>Clt County</td><td>Split County</td><td>VenueCode</td><td>Assigned Court</td>
<td>Debt Amt</td>");
if($open_close == "A"){ echo ("<td>Status</td>");}
if($open_close == "M"){ echo ("<td>Status</td><td>Complete</td><td>Unassign</td><td>Reject</td>");}
if($open_close == "W"){ echo ("<td>Status</td><td>Unassign</td>");}
if($open_close == "Y"){ echo ("<td>Status</td><td>Re-Open</td>");}
if($open_close == "P"){ echo ("<td>Status</td><td>Re-Open</td>");}**
if (file_exists($itm_filename)) {
system ("cat $itm_filename");
}
echo ("</table>");
答案 0 :(得分:0)
在div元素中使用表格,如:
<style>
.divClass
{
height:100px;
overflow:scroll;
}
</style>
<div class="divClass">
<table>
<tr>
<td>demo</td>
</tr>
</table>
</div>