嗨我想單擊href標記顯示全屏覆蓋彈出窗口。我嘗試了很多,但找不到特定的解決方案。到目前爲止,我能夠顯示/隱藏彈出窗口,但我未能顯示全屏彈出窗口。到目前爲止,工作小提琴和必要的代碼如下所述。Jquery-全屏彈出式覆蓋href點擊
$(document).ready(function(){
$('.opop').click(function(){
$('.pops').fadeIn();
});
$('.cls-pop').click(function(){
$('.pops').fadeOut();
});
});
.pops{
\t display:none;
height: 100%;
width: 100%;
background: #fff;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="items">
\t <ul>
\t <li>Abc</li>
\t <li>Abc</li>
\t <li>Abc</li>
\t <li>Abc</li>
\t <li>Abc</li>
\t <li>Abc</li>
</ul>
<a href="#" class="opop">Open Popup</a>
<div class="pops">
\t Some Content
<ul>
<li>Bcd</li>
<li>Bcd</li>
<li>Bcd</li>
<li>Bcd</li>
<li>Bcd</li>
</ul>
<p> Some More Content </p>
<a href="#" class="cls-pop">Close Popup</a>
</div>
</div>
小提琴:http://jsfiddle.net/hTQb8/128/
在此先感謝...
其工作原理...謝謝... – Ashish