Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,伙计们,每当我从页脚链接单击时,任何人都可以知道一个新页面将打开,并且将滚动到下面的特定内容是屏幕截图。条件是网站在 yii 框架中,没有其他的。
您可以在 HTML 中创建一个锚点,<a id="some-content"></a>并将位置更改为some/action#some-content.
<a id="some-content"></a>
some/action#some-content
使用 <a> 您可以创建该功能
<a id="travel">Travel Privileges</a>
并尝试#travel在地址栏中添加 Ex:
#travel
http://somedomain/privileges#travel