您可以使用锚点来“聚焦” div。即:
<div id="myDiv"></div>
然后使用以下javascript:
// the next line is required to work around a bug in WebKit (Chrome / Safari)location.href = "#";location.href = "#myDiv";
欢迎分享,转载请注明来源:内存溢出
您可以使用锚点来“聚焦” div。即:
<div id="myDiv"></div>
然后使用以下javascript:
// the next line is required to work around a bug in WebKit (Chrome / Safari)location.href = "#";location.href = "#myDiv";
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)