Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在用
<a href="#" target="_blank" onclick="window.print();return false;"><t style="color:#ee8029;">Print</t></a>
打印我的弹出窗口详细信息。但它也在打印弹出窗口和背景屏幕。我只想打印弹出窗口的详细信息。
请问有什么修复吗?
如果您尝试self改用window怎么办?
self
window
<a href="#" target="_blank" onclick="self.print();return false;">Print</a>