我正在尝试在我的网站上创建一个子菜单。我已经创建了菜单, 但是我希望它粘贴下来;它的主要目的是链接到同一页面的其他部分, 但是当我滚动菜单时, 菜单会被留下。
我使用The Jupiter插件构建了菜单。我们已经在所有页面上提供了通用导航栏, 并且始终保持在顶部。
我的问题是:当我向下滚动页面时, 如何使它粘住?
我也在使用WordPress面包店。如果需要, 我可以提供屏幕截图或更多信息。
谢谢!
#1
你是否尝试过在CSS中使用position:sticky?
position: sticky;
来源:
https://www.srcmini02.com/63927.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41609.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57