JSFiddle - React, Tailwind, and code Playground

by v921

HTML

<div id='post_message_886182'>
<table>
    <tr>
        <td id='td_post_886182'>qwe</td>
        <td id='td_post_886182'>qwe</td>
    </tr>
    </table>
</div>

<input type='button' onClick='window.print()' value=print>

CSS

@media print {
	body * {
		visibility: hidden;
		position: absolute;
        }
	* {
		background: white!important;
		color: black;
		border-width: 0!important;
        border:1px solid black!important;                
	}
          
	#post_message_886182,#table_post_886182, #td_post_886182, #post886182, #post886182 tr, #post886182 tbody, form {
		visibility: visible;
                position: static;
		width: 100%;
               
	}
}