http://hi.baidu.com/hehuili1988/blog/item/0387635a6f0cee3e2834f082.html
请大家进此链接   有图片   
请大家不要嫌麻烦
这里我不会发图片 所以用了链接

解决方案 »

  1.   

    http://hi.baidu.com/hehuili1988/blog/item/0387635a6f0cee3e2834f082.html
      

  2.   

    这不就是上面是文本,下面是CHECKBOX吗,怎么你是想问什么问题、。
      

  3.   

      我是想要吧数据从数据库中读取出来  然后输出到WORD或者 PDF中哦
      

  4.   


    <style>
    @media Print { .Noprn{Display:none}}
    </style>
    把不需要打印的元素 class设置成 Noprn
    <p class="Noprn">不打印</p>
    =======================================
    2.js代码
    <script>
      function printview()
    {
        bdhtml=window.document.body.innerHTML;
        sprnstr="<!--本部分以上不被打印-->";
        eprnstr="<!--本部分以下不被打印-->";
        prnhtml=dbhtml.substr(dbhtml.indexof(sprnstr)+17);
        prnhtml=prnhtml.substring(0,prnhtml.indexof(eprnstr));
        window.document.body.innerHTML=prnhtml;
        window.print();
    }
    </script>
    页面代码
    <center><!--本部分以上不被打印--></center>
    12312321323
    <center><!--本部分以下不被打印--></center><input type="button" name="print" value="预览并打印" onclick="printview()"/>
      

  5.   


     真真滴高手哪有时间进CSDN哦!!!!!!