The question is deeper. I have a popup code:
function box_info(id,value){ $(".info-"+id).show(); $(".info-"+id).css("display","block"); $("html,body").css("overflow","hidden"); if(value == 'close'){ $(".info-"+id).hide(); $(".info-"+id).css("display","none"); $("html,body").css("overflow","auto"); } $(document).mouseup(function(e){ if ($(".info-"+id).has(e.target).length === 0){ $(".info-"+id).hide(); $(".info-"+id).css("display","none"); $("html,body").css("overflow","auto"); } }); };
body{ height: 1000px; } #info{ overflow:auto; position: fixed; z-index: 99997; width: 100%; text-align:center; background: rgba(0,0,0,0.7); top:0; bottom:0; left:0; right:0; } #info-box{ position:relative; z-index: 99998; max-width: 480px; min-height: 600px; margin: 10% auto; text-align:left; display:block; padding: 20px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.2); -webkit-box-shadow: 0 2px 10px rgba(0,0,0,0.2); -webkit-animation: info-top 0.35s ease-in-out; animation: info-top 0.35s ease-in-out; }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <div id='info' class='info-1' style='display: none;'> <div id='info-box'> Первый блок. Много текста и блоков. </div> </div> <div id='info' class='info-2' style='display: none;'> <div id='info-box'> Второй блок. Много текста и блоков. </div> </div> <button onclick='box_info(1);'>Открыть первый блок</button> <button onclick='box_info(2);'>Открыть второй блок</button>
The problem is in the scroll.
Having opened the first or second pop-up, the scrolling block disappears and only the body scroll remains, when you next open the opposite pop-up and when you click on the block itself, a scroll of both appears. It is necessary to appear only from the body.
I don’t know the adaptation, but on android 2.3 fixed it’s just awfully displayed and the unit doesn’t scroll.
How can you get around this, in addition to buying a new phone?