diff --git a/packages/vant-cli/site/desktop/components/Header.vue b/packages/vant-cli/site/desktop/components/Header.vue index dff09df2a..4547b0eb2 100644 --- a/packages/vant-cli/site/desktop/components/Header.vue +++ b/packages/vant-cli/site/desktop/components/Header.vue @@ -172,6 +172,8 @@ export default { width: 100%; background-color: var(--van-doc-header-background); user-select: none; + position: relative; + z-index: 2; &__top { display: flex; diff --git a/packages/vant-cli/site/desktop/components/Nav.vue b/packages/vant-cli/site/desktop/components/Nav.vue index a501d3f96..5164a5a61 100644 --- a/packages/vant-cli/site/desktop/components/Nav.vue +++ b/packages/vant-cli/site/desktop/components/Nav.vue @@ -1,5 +1,5 @@