打印身份证

时间:2019-03-31 19:10:05

标签: javascript html css twitter-bootstrap-3 printjs

我需要重新设计身份证并打印的帮助,但是尝试打印时我的代码似乎已关闭。 (使用兄弟身份证打印机来打印身份证。)


 <div class="col-lg-4 d-inline-block align-top pr-5">
   <div class="card" id="printJS-card" style="position: relative; display: inline-block; vertical-align: middle; height: 270px; text-align: left; padding: 30px; margin-bottom: 50px; border-radius: 20px; box-sizing: border-box;">
      <div>
         <img src="" alt="Logo Here" style="position: absolute; width: 116px;"> 
      </div>
      <div class="d-inline-block">
         <img id="capturedImage" style="width: 150px; height: 150px; margin: 40px 0 25px 0;" src="https://www.uni-regensburg.de/Fakultaeten/phil_Fak_II/Psychologie/Psy_II/beautycheck/english/durchschnittsgesichter/m(01-32).jpg" />
      </div>
      <div style="position: relative; display: inline-block; vertical-align: top; padding: 30px;">
         <h5>John Doe</h5>
         <h5> 03/31/2019 at 11:19 AM</h5>
      </div>
      <div class="text-center">
         <h5>Construction</h5>
      </div>
   </div>
   <div class="pt-2">
      <input type="button" value="Capture Face" class="btn btn-primary active btn-md" onclick="take_snapshot()" />
      <input id="btn-populate-data" type="button" value="idScan" class="btn btn-success btn-md" onclick="printJS('printJS-card', 'html')" />
   </div>
</div>

enter image description here enter image description here

0 个答案:

没有答案