How to print selected div instead complete page

后端 未结 10 1849
滥情空心
滥情空心 2020-12-13 07:43

I have two divs: div1 and div2.

Maintaining the original css styles applied to the div2 element being printed.

I don\'

10条回答
  •  粉色の甜心
    2020-12-13 08:08

    Use PrintArea jQuery Plugin to print specific div content. I have found the easy integration guide from here - How to print a specific area of the web page using jQuery

    You need only the following code to use PrintArea jQuery Plugin.

    
    

提交回复
热议问题