Skip to content

python脚本为h标签增加id属性,实现点击跳转 #59

Description

@hwc0919

目前的网页中, 资料的h标签没有id属性, 点击上方的菜单无法跳转到下方资料对应的位置, 还是需要手动滚动到达下方资料的链接。

使用此脚本, 可以自动为资料的h标签添加对应的id属性, 实现点击菜单自动向下跳转到对应处。

注: 此脚本应该用在 index.html文件, 由于那个仓库没有开Issue功能, 所以在此提出。

使用: 放在index.html同文件夹内, 直接运行(需要安装bs4第三方包)

auto_add_id.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions