<div id="scroll" class="scroll"> <div id="modal-body" class="modal-body">内容</div> </div>
.scroll { position: relative; line-height: 1.6; height: 5rem; } .modal-body { line-height: 1.6; padding: 10px 0; font-size: 120%; overflow-y: scroll; -webkit-overflow-scrolling: touch; }
$("#rule").on("click", function () { $(".modal").show(); if (!haveScroll) { new IScroll("#scroll", { mouseWheel: true, scrollY: true, tap: true }); haveScroll = true; } });
安卓没问题可以滑动,可是IOS滑不动,请问是怎么回事呀,求指导
神不在的星期二
相关分类