Open yisibl opened 10 years ago
兼容所有浏览器的做法是在所有需要锚点的位置生成一个空标签
<h2><a class="achor" name="">标题……</h2>
高级浏览器提供CSS方法修复锚点定位,并提供提醒动画。
能具体描述下吗?
请参考 http://thx.github.io/cube/ 的锚点跳转效果。
cube
兼容所有浏览器的做法是在所有需要锚点的位置生成一个空标签
type.css
高级浏览器提供CSS方法修复锚点定位,并提供提醒动画。