javascript - Ctrl + P Browser Compatibility issue -
on web page trying add print option.it works perfect on chrome , not working on firefox.
print on chrome
print on firefox
and page is:
<!doctype html public "-//w3c//dtd html 4.01//en"> <html> <head> <title>page title</title> <link href="css/style.default.css" rel="stylesheet"> <style type="text/css"> @media print { .header, .hide { visibility: hidden; } } @page { size: auto; /* auto initial value */ margin: 0; /* affects margin in printer settings */ } </style> </head> <body> <div class="header"> </div> <form id="form1" runat="server"> <asp:panel id="pnlcontents" runat="server"> <div class="contentpanel"> <div class="table-responsive"> <table id="basictable" class="table table-striped table-bordered responsive"> <thead class=""> <tr> <th>name</th> <th>position</th> <th>office</th> <th>age</th> <th>start date</th> <th>salary</th> </tr> </thead> <tbody> <tr> <td>tiger nixon</td> <td>system architect</td> <td>edinburgh</td> <td>61</td> <td>2011/04/25</td> <td>$320,800</td> </tr> </tbody> </table> </div> </div> <!-- contentpanel --> </asp:panel> </form> <input type="button" onclick="window.print()" class="hide" value="print" /> </body> </html>
how can make print on firefox same chrome ??? think small issue new in area don't know how fix this.please help
Comments
Post a Comment