{"id":440,"date":"2022-05-06T17:43:30","date_gmt":"2022-05-06T09:43:30","guid":{"rendered":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/"},"modified":"2022-05-11T16:51:35","modified_gmt":"2022-05-11T08:51:35","slug":"how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header","status":"publish","type":"docs","link":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f"},"content":{"rendered":"\n<p>\u8fd9\u662f<strong>Astra Pro Addon<\/strong>\u63d2\u4ef6\u63d0\u4f9b\u7684\u9ad8\u7ea7\u529f\u80fd\u3002\u8981\u4f7f\u7528\u8fd9\u4e9b Pro \u529f\u80fd\uff0c\u60a8\u9700\u8981\u5728\u60a8\u7684\u7f51\u7ad9\u4e0a\u5b89\u88c5<a href=\"https:\/\/wordpress.org\/themes\/astra\/\">Astra \u4e3b\u9898<\/a>\u548c Astra Pro \u63d2\u4ef6\u3002<\/p>\n\n\n\n<p>\u5f53\u7528\u6237\u6eda\u52a8\u9875\u9762\u65f6\uff0c\u7c98\u6027\u9875\u7709\u5c06\u56fa\u5b9a\u5728\u7f51\u9875\u9876\u90e8\u7684\u6807\u9898\u3002\u5b83\u5c06\u5141\u8bb8\u4ece\u9875\u9762\u7684\u4efb\u4f55\u90e8\u5206\u5feb\u901f\u8bbf\u95ee\u83dc\u5355\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wpastra.com\/docs\/sticky-header-pro\/#note:\">&nbsp;\u7b14\u8bb0\uff1a<\/a><\/h4>\n\n\n\n<p>\u6211\u4eec\u53d1\u5e03\u4e86 Astra 3.0\uff0c\u5b83\u5f15\u5165\u4e86 Header\/Footer Builder\uff0c\u5b83\u6539\u53d8\u4e86\u4e00\u4e9b\u4e1c\u897f\uff0c\u60a8\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u89c6\u9891\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002https:\/\/www.youtube.com\/embed\/gVsQJAniUfA?feature=oembed<\/p>\n\n\n\n<p><strong>\u5982\u4f55\u4f7f\u7528\u7c98\u6ede\u9875\u7709\u6a21\u5757\u6dfb\u52a0\u7c98\u6ede\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\u7684\u5feb\u901f\u6b65\u9aa4<\/strong><br><strong>\u6b65\u9aa4 1\uff1a<\/strong>\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u5e76\u6fc0\u6d3b Astra Pro Addon \u63d2\u4ef6\u3002<a href=\"https:\/\/wpastra.com\/docs\/how-to-install-astra-pro-addon-plugin\/\">\u5982\u4f55\u5b89\u88c5 Astra Pro Addon \u63d2\u4ef6\uff1f<\/a><br><strong>\u7b2c 2 \u6b65\uff1a\u5728<\/strong><em>WordPress \u4eea\u8868\u677f > \u5916\u89c2 > Astra<\/em>\u9009\u9879\u4e0b\u7684 Astra \u9009\u9879\u4e2d\u6fc0\u6d3b Sticky Header \u6a21\u5757<br><strong>\u7b2c 3 \u6b65\uff1a<\/strong>\u8bbf\u95ee\u5b9a\u5236\u5668 [<em>\u5916\u89c2 > \u81ea\u5b9a\u4e49 > \u6807\u9898 > \u7c98\u6ede\u9875\u7709<\/em>] \u4ee5\u7f16\u8f91\u6a21\u5757\u8bbe\u7f6e<\/p>\n\n\n\n<p>\u8fd9\u662f Astra Pro \u63d0\u4f9b\u7684\u4e00\u9879\u9ad8\u7ea7\u529f\u80fd\u3002<strong>\u60a8\u53ef\u4ee5\u4eceAppearance &gt; Astra Options &gt; Sticky Header<\/strong>\u6fc0\u6d3b\u6a21\u5757<strong><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2019\/08\/astra-2-sticky-header.png\"><img decoding=\"async\" src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2019\/08\/astra-2-sticky-header.png\" alt=\"Astra \u7c98\u6027\u6807\u9898\u6fc0\u6d3b\" class=\"wp-image-39671\"\/><\/a><\/figure>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5728<strong>\u5916\u89c2 &gt; \u81ea\u5b9a\u4e49 &gt; \u9875\u7709 &gt; \u7c98\u6027\u9875\u7709\u4e0b\u627e\u5230\u8bbe\u7f6e<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/04\/sticky-header-settings.png\"><img decoding=\"async\" src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/04\/sticky-header-settings.png\" alt=\"\u7c98\u6027\u6807\u9898\uff0cAstra 3.0+\" class=\"wp-image-84989\"\/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wpastra.com\/docs\/sticky-header-pro\/#sticky-header-settings\">&nbsp;\u7f6e\u9876\u9875\u7709\u8bbe\u7f6e<\/a><\/h4>\n\n\n\n<p><strong>Stick Primary Header<\/strong>\u9009\u9879\u5c06\u9ed8\u8ba4\u7c98\u8d34\u4e3b\u9875\u7709\u3002<a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2019\/10\/ast-2-stikcy-header-pro.png\">\uff08\uff1f\uff09<\/a><\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u5df2\u542f\u7528 Astra Pro \u7684\u6807\u9898\u90e8\u5206\u6a21\u5757\uff0c\u60a8\u5c06\u770b\u5230\u7c98\u8d34\u201c\u4e0a\u65b9\u201d\u548c\u201c\u4e0b\u65b9\u201d\u6807\u9898\u90e8\u5206\u7684\u9009\u9879\u3002<\/p>\n\n\n\n<p>\u542f\u7528 Stick Above Header Section \u6216 Stick Above Header Section \u4f1a\u5c06\u76f8\u5e94\u7684\u9875\u7709\u90e8\u5206\u7c98\u8d34\u5230\u9875\u9762\u6eda\u52a8\u7684\u9876\u90e8\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/04\/enable-sticky-header.png\"><img decoding=\"async\" src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/04\/enable-sticky-header.png\" alt=\"\u542f\u7528\u7c98\u6027\u6807\u9898\uff0cAstra 3.0+\" class=\"wp-image-84988\"\/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wpastra.com\/docs\/sticky-header-pro\/#sticky-logo-and-logo-width\">&nbsp;\u7c98\u6027\u5fbd\u6807\u548c\u5fbd\u6807\u5bbd\u5ea6<\/a><\/h4>\n\n\n\n<p>\u8fd9\u5141\u8bb8\u60a8\u4e3a Sticky Header \u9009\u62e9\u4e0e\u7ad9\u70b9\u5fbd\u6807\u4e0d\u540c\u7684\u5fbd\u6807\u3002\u5982\u679c\u60a8\u60f3\u4f7f\u7528\u4e0e\u60a8\u7684\u7f51\u7ad9\u5fbd\u6807\u76f8\u540c\u7684\u5fbd\u6807\uff0c\u8bf7\u5c06\u5176\u7559\u7a7a\u3002\u60a8\u53ef\u4ee5\u6dfb\u52a0\u666e\u901a\u548c\u89c6\u7f51\u819c\u5fbd\u6807\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u6ed1\u5757\u8f7b\u677e\u8bbe\u7f6e\u5bbd\u5ea6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/04\/sticky-header-logo.png\"><img decoding=\"async\" src=\"https:\/\/wpastra.com\/wp-content\/uploads\/2021\/04\/sticky-header-logo.png\" alt=\"Sticky Header \u7684\u5fbd\u6807\uff0cAstra 3.0+\" class=\"wp-image-84990\"\/><\/a><\/figure>\n\n\n\n<p>\u5982\u679c\u60a8\u4ece Astra Pro \u6fc0\u6d3b\u4e86\u989c\u8272\u548c\u80cc\u666f\u6a21\u5757\u5e76\u4e3a\u9875\u7709\u8bbe\u7f6e\u4e86\u80cc\u666f\u989c\u8272\u4ece&nbsp;<strong>\u5916\u89c2 &gt; \u81ea\u5b9a\u4e49 &gt; \u9875\u7709 &gt; \u7c98\u6027\u9875\u7709\u3002<\/strong><\/p>\n\n\n\n<p>\u7136\u540e\u6b64\u80cc\u666f\u989c\u8272\u5c06\u81ea\u52a8\u5e94\u7528\u4e8e\u7c98\u6027\u9875\u7709\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7c98\u6027\u80cc\u666f\u4e0d\u900f\u660e\u5ea6\u9009\u9879\u6765\u7ba1\u7406\u80cc\u666f\u989c\u8272\u7684\u4e0d\u900f\u660e\u5ea6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wpastra.com\/docs\/sticky-header-pro\/#enable-shrink-effect\">&nbsp;\u542f\u7528\u6536\u7f29\u6548\u679c<\/a><\/h4>\n\n\n\n<p>\u5b83\u5c06\u7f29\u5c0f\u7c98\u6027\u9875\u7709\u9ad8\u5ea6\u3001\u5fbd\u6807\u548c\u83dc\u5355\u5927\u5c0f\u3002Sticky Header \u5c06\u4ee5\u7d27\u51d1\u7684\u5c3a\u5bf8\u663e\u793a\u3002\u5f53\u60a8\u7684\u4e3b\u9875\u7709\u9ad8\u5ea6\u975e\u5e38\u5927\u5e76\u4e14\u60a8\u5e0c\u671b\u5728\u8f6c\u6362\u4e3a\u7c98\u6027\u9875\u7709\u65f6\u5b83\u66f4\u5c0f\u65f6\uff0c\u5b83\u5f88\u6709\u7528\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wpastra.com\/docs\/sticky-header-pro\/#select-animation-effect\">&nbsp;\u9009\u62e9\u52a8\u753b\u6548\u679c<\/a><\/h4>\n\n\n\n<p>\u52a8\u753b\u6548\u679c\u5c06\u51fa\u73b0\u5728\u7c98\u6027\u9875\u7709\u6761\u76ee\u4e0a\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/wpastra.com\/docs\/sticky-header-pro\/#display-on\">&nbsp;\u663e\u793a\u5f00\u542f<\/a><\/h4>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u9009\u62e9\u5728\u684c\u9762\u6216\u79fb\u52a8\u8bbe\u5907\u4e0a\u6216\u4e24\u8005\u4e0a\u663e\u793a\u60a8\u7684\u7f6e\u9876\u9875\u7709\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u7c98\u6027\u9875\u7709\u4f1a\u51fa\u73b0\u9634\u5f71\u3002\u5982\u679c\u8981\u5220\u9664\u5b83\uff0c\u8bf7\u4f7f\u7528\u81ea\u5b9a\u4e49 CSS\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.main-header-bar.ast-sticky-active {\n    box-shadow: unset;\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/wpastra.com\/docs\/sticky-header-pro\/#colors--background-for-sticky-header\">&nbsp;\u7c98\u6027\u9875\u7709\u7684\u989c\u8272\u548c\u80cc\u666f&nbsp;<\/a><\/h3>\n\n\n\n<p>\u5728<strong>Header &gt; Sticky Header<\/strong>\u4e0b\u7684\u5b9a\u5236\u5668\u4e2d\uff0c\u6240\u6709\u9009\u9879\u5747\u53ef\u7528\u3002\u5982\u679c\u60a8\u6709\u4e00\u4e2a\u7c98\u6027\u4e3b\u6807\u9898\uff0c\u5219\u4f1a\u51fa\u73b0\u76f8\u5e94\u7684\u9009\u9879\u3002\u5982\u679c\u5c06\u201c\u4e0a\u65b9\u201d\u548c\u201c\u4e0b\u65b9\u201d\u6807\u9898\u8bbe\u7f6e\u4e3a\u7c98\u8d34\u4e0d\u540c\u7684\u9009\u9879\uff0c\u5219\u4f1a\u51fa\u73b0\u3002&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662fAstra Pro Addon\u63d2\u4ef6\u63d0\u4f9b\u7684\u9ad8\u7ea7\u529f\u80fd\u3002\u8981\u4f7f\u7528\u8fd9\u4e9b Pro \u529f\u80fd\uff0c\u60a8\u9700\u8981\u5728\u60a8\u7684\u7f51\u7ad9\u4e0a\u5b89\u88c5Astr &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/\"> <span class=\"screen-reader-text\">\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"doc_category":[40],"doc_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f - ASTRA\u4e2d\u6587<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-\u5982\u4f55\u4f7f\u7528astra\u6dfb\u52a0sticky-header\u6216on-scroll-fixed-header\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f - ASTRA\u4e2d\u6587\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u662fAstra Pro Addon\u63d2\u4ef6\u63d0\u4f9b\u7684\u9ad8\u7ea7\u529f\u80fd\u3002\u8981\u4f7f\u7528\u8fd9\u4e9b Pro \u529f\u80fd\uff0c\u60a8\u9700\u8981\u5728\u60a8\u7684\u7f51\u7ad9\u4e0a\u5b89\u88c5Astr &hellip; \u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f Read More \u00bb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-\u5982\u4f55\u4f7f\u7528astra\u6dfb\u52a0sticky-header\u6216on-scroll-fixed-header\/\" \/>\n<meta property=\"og:site_name\" content=\"ASTRA\u4e2d\u6587\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-11T08:51:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpastra.com\/wp-content\/uploads\/2019\/08\/astra-2-sticky-header.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/\",\"url\":\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/\",\"name\":\"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f - ASTRA\u4e2d\u6587\",\"isPartOf\":{\"@id\":\"https:\/\/wpeyes.com\/astra\/#website\"},\"datePublished\":\"2022-05-06T09:43:30+00:00\",\"dateModified\":\"2022-05-11T08:51:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/wpeyes.com\/astra\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/wpeyes.com\/astra\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpeyes.com\/astra\/#website\",\"url\":\"https:\/\/wpeyes.com\/astra\/\",\"name\":\"ASTRA\u4e2d\u6587\",\"description\":\"wpeyes\u6280\u672f\u89c6\u70b9\",\"publisher\":{\"@id\":\"https:\/\/wpeyes.com\/astra\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpeyes.com\/astra\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wpeyes.com\/astra\/#organization\",\"name\":\"ASTRA\u4e2d\u6587\",\"url\":\"https:\/\/wpeyes.com\/astra\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/wpeyes.com\/astra\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wpeyes.com\/astra\/wp-content\/uploads\/sites\/2\/2022\/05\/astra-icons-03.png\",\"contentUrl\":\"https:\/\/wpeyes.com\/astra\/wp-content\/uploads\/sites\/2\/2022\/05\/astra-icons-03.png\",\"width\":500,\"height\":500,\"caption\":\"ASTRA\u4e2d\u6587\"},\"image\":{\"@id\":\"https:\/\/wpeyes.com\/astra\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f - ASTRA\u4e2d\u6587","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-\u5982\u4f55\u4f7f\u7528astra\u6dfb\u52a0sticky-header\u6216on-scroll-fixed-header\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f - ASTRA\u4e2d\u6587","og_description":"\u8fd9\u662fAstra Pro Addon\u63d2\u4ef6\u63d0\u4f9b\u7684\u9ad8\u7ea7\u529f\u80fd\u3002\u8981\u4f7f\u7528\u8fd9\u4e9b Pro \u529f\u80fd\uff0c\u60a8\u9700\u8981\u5728\u60a8\u7684\u7f51\u7ad9\u4e0a\u5b89\u88c5Astr &hellip; \u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f Read More \u00bb","og_url":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-\u5982\u4f55\u4f7f\u7528astra\u6dfb\u52a0sticky-header\u6216on-scroll-fixed-header\/","og_site_name":"ASTRA\u4e2d\u6587","article_modified_time":"2022-05-11T08:51:35+00:00","og_image":[{"url":"https:\/\/wpastra.com\/wp-content\/uploads\/2019\/08\/astra-2-sticky-header.png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/","url":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/","name":"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f - ASTRA\u4e2d\u6587","isPartOf":{"@id":"https:\/\/wpeyes.com\/astra\/#website"},"datePublished":"2022-05-06T09:43:30+00:00","dateModified":"2022-05-11T08:51:35+00:00","breadcrumb":{"@id":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpeyes.com\/astra\/docs\/how-to-add-a-sticky-header-or-on-scroll-fixed-header-with-astra-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8astra%e6%b7%bb%e5%8a%a0sticky-header%e6%88%96on-scroll-fixed-header\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/wpeyes.com\/astra\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/wpeyes.com\/astra\/docs\/"},{"@type":"ListItem","position":3,"name":"\u5982\u4f55\u4f7f\u7528 Astra \u6dfb\u52a0\u7c98\u6027\u9875\u7709\u6216\u6eda\u52a8\u56fa\u5b9a\u9875\u7709\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/wpeyes.com\/astra\/#website","url":"https:\/\/wpeyes.com\/astra\/","name":"ASTRA\u4e2d\u6587","description":"wpeyes\u6280\u672f\u89c6\u70b9","publisher":{"@id":"https:\/\/wpeyes.com\/astra\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpeyes.com\/astra\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Organization","@id":"https:\/\/wpeyes.com\/astra\/#organization","name":"ASTRA\u4e2d\u6587","url":"https:\/\/wpeyes.com\/astra\/","logo":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/wpeyes.com\/astra\/#\/schema\/logo\/image\/","url":"https:\/\/wpeyes.com\/astra\/wp-content\/uploads\/sites\/2\/2022\/05\/astra-icons-03.png","contentUrl":"https:\/\/wpeyes.com\/astra\/wp-content\/uploads\/sites\/2\/2022\/05\/astra-icons-03.png","width":500,"height":500,"caption":"ASTRA\u4e2d\u6587"},"image":{"@id":"https:\/\/wpeyes.com\/astra\/#\/schema\/logo\/image\/"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"qmk","author_link":"https:\/\/wpeyes.com\/astra\/author\/qmk\/"},"uagb_comment_info":0,"uagb_excerpt":"\u8fd9\u662fAstra Pro Addon\u63d2\u4ef6\u63d0\u4f9b\u7684\u9ad8\u7ea7\u529f\u80fd\u3002\u8981\u4f7f\u7528\u8fd9\u4e9b Pro \u529f\u80fd\uff0c\u60a8\u9700\u8981\u5728\u60a8\u7684\u7f51\u7ad9\u4e0a\u5b89\u88c5Astr&hellip;","_links":{"self":[{"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/docs\/440"}],"collection":[{"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":2,"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/docs\/440\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/docs\/440\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/doc_category?post=440"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpeyes.com\/astra\/wp-json\/wp\/v2\/doc_tag?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}