我对查询的结果页面有两个问题....第 1 期表的边框。
我有一串相等的字符串
$ content. = "<tr> <td> Total <td>". $ line ["total"]. "";
我只想有变量 php ( ". $ riga [" total"]."
) 的边框。
我试过PHP: $ content. = "<tr> <td> Total <td> <table border =" 1 ">". $ line ["total_arrest"]. "";
,但显然出错了。
我该如何解决它?
第 2 期
使用此代码在 Word 中导出结果搜索
if (isset ($ _ POST ['submit'])) {
header ("Content-Type: application / vnd.msword");
header ("Expires: 0"); // no-cache
header ("Cache-Control: must-revalidate, post-check = 0, pre-check = 0"); // no-cache
header ("content-disposition: attachment; filename = morning _" date ("d_m_Y"). "doc");
}
我正确导出它,但我想使用打印布局导出它,因为它在网页布局中执行此操作
对于问题 1,您可以尝试在表格标签中使用内联 CSS 样式,即
样式 ="边框:1px 纯黑色;"