I am using PHP and CodeIgniter. I have a page that containing the data from database and \\ search option in that screen. I'm designing the new page for print the same data. How can I link the new page for print? For example:
View page:
I want to print the display result in another new page, like:
How to get the result from screen 1 to screen 2?
I think you want to redesign (alter) the presentation when you are printing that page/content and in this case (if really this is the case) you may add a different css styles
for print media
, for example:
<link rel="stylesheet" type="text/css" media="screen" href="style.css">
<link rel="stylesheet" type="text/css" media="print" href="print.css">
if you add another CSS file and style those elements differently in that CSS file then those styles would be applied only when the pages is being printed, so you may add in that CSS:
#search_bar_at_top {
display:none; /*Hide the search bar*/
}
Or using in the same CSS file using media print
:
@media print{
#search_bar_at_top {
display:none; /*Hide the search bar*/
}
}
Check more on MDN and other helpful articles:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.