Can I Modify this Javascript to Print Images from Div?

前端 未结 1 912
轮回少年
轮回少年 2020-12-22 05:19

I have a div in my page layout that I would like to print. I have worked through some sample code on how to do this and come up with the following:



        
相关标签:
1条回答
  • 2020-12-22 05:52

    Couldn't you just do:

    function PrintElem(elem)
    {
        Popup($(elem).html());
    }
    

    Reference: http://api.jquery.com/html/

    0 讨论(0)
提交回复
热议问题