文章目录 锚点定位的优化: 1.锚点定位的写法: 2.锚点定位存在的问题: 3.优化方案: 锚点定位的优化: 1.锚点定位的写法: <a href="#content">点击我前往p标签处</a> <p id="content"