我试图在Blogger帖子上实现此代码,但是当我单击标题1时,它将转到标题1的文本而不是标题
>>> import numpy as np
...
... # dummy data
... A = np.random.random((3,4)) # randoms of shape (3,4)
...
... # get indices
... x,y = np.indices(A.shape) # both arrays have shape (3,4)
...
... # prove that the indices correspond to the values of A
... print(all(A[i,j] == A[x[i,j], y[i,j]] for i in x.ravel() for j in y.ravel()))
True
在这里检查:Link of website post
答案 0 :(得分:0)
您在我的博客文章中看到的问题是,固定的标题栏与锚点重叠...
我相信您可以在此问题的答案中找到解决方案:Fixed page header overlaps in-page anchors