通过data 属性:向您想要监听的元素(通常是body)添加data-spy="scroll"。然后添加带有Bootstrap ... <body data-spy="scroll" data-target=".navbar-example"> .
確定! 回上一頁