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規則。謝謝!