大佬教程收集整理的这篇文章主要介绍了php – 无法在IE中文本,但在Firefox中工作,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
CSS
#viewAll { font-family: "Trebuchet MS",Arial,Helvetica,sans-serif; width: 100%; border-collapse: collapse; margin-left: 10px; table-layout: fixed; } #viewAll td,#viewAll th { font-size: 1.1em; border: 1px solid #98bf21; word-wrap: break-word; text-align: center; overflow: hidden; } #viewAll tbody td { padding: 2px; } #viewAll th { font-size: 1.1em; padding-top: 5px; padding-bottom: 4px; BACkground-color: #A7C942; color: #ffffff; }
表
<?PHP echo '<table id="viewAll" class="tablesorter">'; echo '<thead>'; echo '<tr align="center">'; echo '<th style="width:70px;">Product</th>'; echo '<th style="width:105px;">Prob</th>'; echo '<th style="width:105px;">I</th>'; echo '<th style="width:60px;">Status</th>'; echo '<th style="width:120px;">Experience</th>'; echo '<th style="width:200px;">Technical SumMary</th>'; echo '<th style="width:80px;">Record Created</th>'; echo '<th style="width:80px;">Record updated</th>'; echo '<th style="width:50px;">Open</th>'; echo '</tr>'; echo '</thead>'; echo '<tbody>'; while ($data=MysqLi_fetch_array($result)){ #limiTing the Summary TEXT displayed in the table $limited_sumMary = (strlen($data['sumMary']) > 300) ? substr(($data['sumMary']),300) . '...' : $data['sumMary']; $limited_exp = (strlen($data['exp']) > 300) ? substr(($data['exp']),300) . '...' : $data['exp']; echo '<tr align="center"> <td style="width:70px; text-align:center;">'.$data['product'].'</td>'; //if value is '-' do not display as link if ($data['prob'] != '-'){ echo '<td style="width:105px;">'.$data['prob'].'</a></td>'; } else{ echo '<td style="width:105px; ">'.$data['prob'].'</td>'; } if ($data['i'] != '-'){ echo '<td style="width:105px; ">'.$data['i'].'</a></td>'; } else{ echo '<td style="width:105px; ">'.$data['i'].'</td>'; } echo'<td style="width:40px; " >'.$data['status'].'</td> <td style="width:120px; text-align:left;">'.$limited_cust_exp.'</td> <td style="width:200px; text-align:left;">'.$limited_sumMary.'</td> <td style="width:80px; ">'.$data['created'].'</td> <td style="width:80px; ">'.$data['updated'].'</td>'; if (isset($_SESSION['username'])){ echo '<td style="width:50px; "> <form action="displayRecord.PHP" method="get">'.' <input type="hidden" name="id" value="'. $data['id'].'" style="text-decoration: none" /><input type="submit" value="Open" /></form></td>'; }else{ echo '<td style="width:50px; "> <form action="displayRecord.PHP" method="get">'.' <input type="hidden" name="id" value="'. $data['id'].'" style="text-decoration: none" /><input type="submit" value="View" /></form></td>'; } echo '</tr>'; }#end of while echo '</tbody>'; echo '</table>'; ?>
编辑1:
我刚刚通过xampp尝试了完全相同的代码,它将其置于IE中.任何想法,为什么它可以通过XAMPP在我的本地机器,但不通过服务器? (现在很困惑)
编辑2:
@L_674_6@
以上是大佬教程为你收集整理的php – 无法在IE中文本,但在Firefox中工作全部内容,希望文章能够帮你解决php – 无法在IE中文本,但在Firefox中工作所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。