1
jQuery的如果一个页面在一个弹出打开
$('a.popup').click(function(){
window.open(this.href, 'Page title', 'width=600, height=650');
return false;
});
HTML
<a class="popup" href="sample.html">
我想,如果我的sample.html
页在弹出窗口中打开隐藏页眉和页脚如何隐藏元素。我可以在<html>
或<body>
的弹出框中添加类名,以便我可以添加CSS规则。谢谢!