当前位置: 首页 > news >正文

医疗器械招商网站大全网片排焊机

医疗器械招商网站大全,网片排焊机,公众号代运营,建材招商网站浏览器的print方法直接调用会打印当前页面的所有元素#xff0c;使用iframe可以实现局部打印所需要的模块。 组件printView#xff0c;将传入的信息放入iframe中#xff0c;调用浏览器的打印功能 templatediv classprintiframeidif…浏览器的print方法直接调用会打印当前页面的所有元素使用iframe可以实现局部打印所需要的模块。 组件printView将传入的信息放入iframe中调用浏览器的打印功能 templatediv classprintiframeidiframestyledisplay: none; width: 100%frameborder0/iframe/div /template script export default {name: printView,methods: {setBodyHtml(html) {const document window.documentconst iframe window.frames[0]iframe.document.head.innerHTML document.head.innerHTML // 获取当前文档的头部给iframeiframe.document.body.innerHTML html // 把传过来的html给iframe头部iframe.document.body.style.background #ffflet arr document.getElementsByTagName(tr)let heightNum 0let onePage 800 //第一页的高度for (let i in arr) {heightNum arr[i].offsetHeightif (heightNum onePage) {heightNum arr[i].offsetHeightonePage 1500 //第二页高度}}iframe.window.print()}} } /script div v-ifdetail.work_order_id classbefore idprint_info         work-order-detail :detaildetail/work-order-detail /div // 打印 const viewRef ref(null) const print () {   const html document.getElementById(print_info).innerHTML   viewRef.value.setBodyHtml(html) }
http://www.pierceye.com/news/723015/

相关文章:

  • 北京智能网站建设制作什么叫优化
  • 免费移动网站建站wordpress加skype
  • 企业推广建站网页开发教程
  • 外贸网站定制开发网站虚拟主机过期
  • 学习网站建设要报班吗中国建设银行晋中分行网站
  • 学校网站建设经验介绍西安建设网站公司
  • 江西营销网站建设公司的企业诚信建设分析
  • 生活家装饰官方网站动画设计考研
  • 网站内部的信息安全建设怎么才能在百度上做引流呢
  • 男男做的视频网站wordpress 系统
  • 网站建设合同 附件上海网站制作费用
  • 知名的环保行业网站开发开发一个app难吗
  • 律师网站建设方案网站企业制作
  • 基础建设期刊在哪个网站可以查做网站咨询
  • 万网个人网站备案查询甘肃建设银行网站
  • 网站建设有什么费用wordpress国外主题网站
  • 手机网站下拉菜单代码com域名代表什么
  • 网站右侧信息跟随左侧菜单栏变化好牛网站建设
  • 手机网站pc网站免费国外服务器租用
  • 商城网站建设服务wordpress手机导航三横拦
  • app设计欣赏网站长沙制作公园仿竹护栏
  • 景泰县做网站网站建设上市
  • 电子商务网站开发课题简介php mysql网站开发...
  • 如何提升网站alexa排名wordpress加联系方式
  • 餐厅网站模版wordpress linux
  • 网站seo优化怎么做mes系统
  • 江津网站建设公司做外贸去哪个网站找客户
  • 网站建设-部署与发布wordpress怎么代码高亮
  • 自己做的网站本地虚拟上传wordpress 不能评论
  • 百度贴吧网站开发需求分析怎么免费自己做推广