I have problem in print screen

I have problem in print screen

XerKXerK Posts: 25Questions: 8Answers: 0

this is a live project
http://live.datatables.net/maqonako/2/

http://live.datatables.net/maqonako/2/edit?html,css,js,console,output

When I click one time on my project it displays my style header and footer but when I close the print page and try again without reloading the page it not display any header and footer it disappear and my style is didn't work @media print

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin
    Answer ✓

    The problem was that you were moving the DOM nodes from the original document into the new print one. So then when you press the button again, there is no node to move!

    Cloning the original element fixes that: http://live.datatables.net/maqonako/3/edit

    Allan

  • XerKXerK Posts: 25Questions: 8Answers: 0

    Thank you but what about CSS style is didn't work for me?

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @XerK ,

    The thing to do would be to check the object after the clone to ensure it's got all the classes and properties that you'd expect. If still no joy, could you update the test case to demonstrate the issue please.

    Cheers,

    Colin

This discussion has been closed.