一聚教程网:一个值得你收藏的教程网站

在IOS系统上滚动条滚动到指定的位置出现空白页面的解决方案

mg电子:AsChina'sQingmingFestival,alsoknownasTombSweepingDay,approachesonTuesday,anincreasingnumberofmournersarebreakingwithtraditionandexploringnewwaystocommemoratethelifeofalovedone.ForonewomansurnamedZhanginthecityofHangzhou,ZhejiangProvince,apreciousstonependantmadefromcrematedasheswasabrilliantideatorememberherlatemother."Mymotherlovednature….AndIthinkthisisagreatanswertotheenvironmentallyfriendlyburialsthecountryhasbeenpromoting,"Zhangtoldmedia.ZhangwasthefirstinHangzhoutotrythenewservicewhichallowsmournerstohavealovedone'sashesturnedintowearablejewelry.ThespecialserviceprovidedbytheZhejiangprovincialgovernmentinvolvesheatingtheashesathightemperatures,thenshapingthemintoglass-likeorbsthatcanbefashionedintojewelry."These'lifestones'showpeople'snewattitudetowardlife,"saidChenJinglian,SecretaryGeneralofFuneralAssociationofZhejiangProvince,addingthatthepopularityofthestonesreflectanawarenessofenvironmentalprotection.OpinionsonsocialmediaalsoshowedawillingnessamonguserstobreakfromChinesefunerarytraditions,whichgenerallyfavorearthburialsoverbeliefsthatcremationdesecratesthebody."Imean,whypeoplewouldbescaredoftheirdeadfamilymembersIdoubttheywouldhurtus,evenifghostsdoexist,"NetEasecommenteduser"Banzhiyu."Othersremainedskepticalofwearableashes."Istillthinkit'screepytotaketheashesofyourfamilieswithyoueverywhereyougo,"wrote"Yuershuizhongyou."  

时间:2017-02-04 00:00:00 编辑:简简单单 来源:转载

原因:

-webkit-overflow-scrolling:touch

解释:

由于使用-webkit-overflow-scrolling这个属性,苹果手机会使用硬件加速,从而促使页面滑动得更加流畅,然而也导致了页面出现空白的情况。

解决办法:

滚动之前,先设-webit-overflow-scrolling的属性值为auto,然后页面滚动完了,再设为touch即可。

实例:

 

 代码如下

$("#id").css('-webkit-overflow-scrolling','auto');

$("#id").scrollTop(9999);

$("#id").css('-webkit-overflow-scrolling','touch');

 

文章评论

热门栏目

合作: 葡京赌球 赌博游戏 mg电子