Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/366.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在库中自定义打印pdf的按钮链接?_Javascript_Html_Css_Reactjs_React To Pdf - Fatal编程技术网

Javascript 如何在库中自定义打印pdf的按钮链接?

Javascript 如何在库中自定义打印pdf的按钮链接?,javascript,html,css,reactjs,react-to-pdf,Javascript,Html,Css,Reactjs,React To Pdf,那么我该如何把链接按钮打印出来呢!在桌子下面? 我可以使用CSS根据自己的设计定制它吗?只需将它写在表组件下就足够了 <div> <ComponentToPrint ref={el => (this.componentRef = el)} /> <ReactToPrint trigger={() => <a href="#">Print this out!</a>} content={() => th

那么我该如何把链接按钮打印出来呢!在桌子下面?
我可以使用CSS根据自己的设计定制它吗?

只需将它写在表组件下就足够了

<div>
  <ComponentToPrint ref={el => (this.componentRef = el)} />
  <ReactToPrint
    trigger={() => <a href="#">Print this out!</a>}
    content={() => this.componentRef}
  />
</div>