Link to a specific location in a Flask template

前端 未结 2 1403
情书的邮戳
情书的邮戳 2020-12-06 03:00

In HTML I can link directly to a specific location on a page, assuming there\'s an element with the given id:



        
2条回答
  •  情书的邮戳
    2020-12-06 03:36

    Quick note: for the section id don't put the # in the _anchor.

    {{ url_for('index', _anchor='about') }}
    

提交回复
热议问题