B
B
banny_name2015-10-26 18:37:34
JavaScript
banny_name, 2015-10-26 18:37:34

How to send a block for printing?

You need to print a certain block, the block is filled with JS.
There is an option to create a frame, fill it and print it, but this option is not suitable.
I need something different and more correct, because my work will be evaluated (this is not the whole work, but a small part of it)
Tell me how to implement this correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Kublyakov, 2015-10-26
@Kublyakov

The first option that came to mind: For everything except this block, set

@media print  {
    elements {
        display: none;
    }
}

Well, this block needs styles.
PS - Right now I thought of something, but I generally correctly understood the essence of the issue, or are you talking about something else?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question