Home > front end >  Could you tell me a web page problems in printed form
Could you tell me a web page problems in printed form

Time:12-28

I query, data using the table frame, then because of the need to print, when I added a title, printed
I don't want don't frame title, but do not know how to remove, please see the relevant code:

<style>
@ media print {
INPUT {display: none}
}
</style>


<? PHP

//print title
Echo "& lt; The table border=2 id='TAB' & gt; ";
Echo "& lt; THEAD style="display: table header - group; The font - weight: bold '& gt; ";
Echo "& lt; TR> ";
Echo "& lt;/THEAD> ";

Echo "& lt; Tr> The order number & lt;/th> The customer & lt;/th> The product name & lt;/th> Type & lt;/th> Unit & lt;/th> Order quantity & lt;/th> Not sales & lt;/th> The order instructions & lt;/th> ";

//the following is a mysql query data
If I were in the table set border=0, then all have no a form; I just hope the title "not sales of products" no table, behind the query data table,
But can you tell me how to do?

CodePudding user response:

Echo "& lt; The table border=2 id='TAB' & gt; ";
Echo "& lt; THEAD style="display: table header - group; The font - weight: bold '& gt; ";
Echo "& lt; TR> Echo "& lt;/THEAD> ";

CodePudding user response:

Style is added in the TD='border: none', I tried, still won't do, there are other ways, please?

CodePudding user response:

https://www.w3school.com.cn/tiy/t.asp? F=html_tables3

Title is the captain

CodePudding user response:

Caption spelt wrong, actually cannot be modified,,,,

CodePudding user response:

If I tried, with the caption, then won't print the title at the top of each page, is there any other method

CodePudding user response:

There is no way?
  • Related