最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

bootstrap PrintThis打印插件使用詳解

 更新時間:2017年02月20日 17:15:31   作者:Java軟件小白  
這篇文章主要為大家詳細介紹了bootstrap PrintThis打印插件的使用方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下

bootstrap PrintThis打印效果圖:

如圖,這個是調(diào)用了谷歌的打印,使用很方便,可以自己調(diào)樣式,需要的可以研究一下,這邊貼出使用方法。

附上GitHub:https://github.com/jasonday/printThis
jsp:

<script src="<%=basePath %>bootstrap/js/printThis.js"></script> 

 

<!-- 二維碼彈出框 --> 
<div class="modal fade" id="myModal_qrcode" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> 
 <div class="modal-dialog" role="document"> 
  <div class="modal-content"> 
   <div class="modal-header"> 
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 
     <span aria-hidden="true">×</span> 
    </button> 
    <h4 class="modal-title" id="myModalLabel">二維碼</h4> 
   </div> 
   <div class="modal-body"> 
    <center> 
     <div id="qrcode"></div> 
     <table> 
      <tbody> 
       <tr> 
        <td> 
         <label class="col-sm-4 control-label" for="equ_name_qrcode"><h7>設備名稱:</h7></label> 
         <div class="col-sm-8"> 
          <input class="form-control" id="equ_name_qrcode" type="text"/> 
         </div> 
        </td> 
        <td> 
         <label class="col-sm-4 control-label" for="equ_ip_qrcode"><h7>設備IP:</h7></label> 
         <div class="col-sm-8"> 
         <input class="form-control" id="equ_ip_qrcode" type="text"/> 
         </div> 
        </td> 
       </tr> 
      </tbody> 
     </table> 
    </center> 
   </div> 
   <div class="modal-footer"> 
    <button type="button" class="btn btn-default" data-dismiss="modal"> 
     <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>關閉 
    </button> 
    <button type="button" id="btn_print" class="btn btn-primary" data-dismiss="modal"> 
     <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>打印 
    </button> 
   </div> 
  </div> 
 </div> 
</div> 


js:

 $("#btn_print").click(function(event) { 
  /* Act on the event */ 
   $("#qrcode").printThis({ 
    debug: false, 
    importCSS: false, 
    importStyle: false, 
    printContainer: true, 
//    loadCSS: "/Content/Themes/Default/style.css", 
    pageTitle: "二維碼", 
    removeInline: false, 
    printDelay: 333, 
    header: null, 
    formValues: false 
   }); 
//  alert("等待打印"); 
 }); 

以上就是本文的全部內(nèi)容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。

相關文章

最新評論

琼结县| 呼伦贝尔市| 临湘市| 上饶县| 弥渡县| 泽库县| 安义县| 集安市| 固安县| 兴国县| 河源市| 博罗县| 邹平县| 晋宁县| 丹巴县| 三明市| 宕昌县| 伊金霍洛旗| 库尔勒市| 疏附县| 黔西| 封开县| 曲阳县| 乐亭县| 社会| 南澳县| 余姚市| 天全县| 宁津县| 浦东新区| 大石桥市| 右玉县| 安陆市| 仁怀市| 和平区| 南丹县| 洛宁县| 马龙县| 且末县| 玉屏| 沾化县|