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.
假设我有一个 iframe 的页面位于 400 像素 x 400 像素的页面上。是否可以单击一个按钮,使 iframe 的内容在新窗口中弹出,使其保持与 iframe 相同的大小,并位于 iframe 在其原始页面上的区域正上方?
你可以这样尝试:-
<a href="/abc.php" onclick="window.open(this.href,'targetWindow','toolbar=no, location=no,status=no,menubar=no,scrollbars=yes,resizable=yes, width='400px',height='400px')" />