diff --git a/docs/markdown/quickstart.zh-CN.md b/docs/markdown/quickstart.zh-CN.md index 673766b33..3ee3c03b6 100644 --- a/docs/markdown/quickstart.zh-CN.md +++ b/docs/markdown/quickstart.zh-CN.md @@ -190,7 +190,7 @@ iPhone X 等机型底部存在底部指示条,指示条的操作区域与页 ``` - + ### 组件实例方法 diff --git a/packages/vant-cli/site/common/style/highlight.less b/packages/vant-cli/site/common/style/highlight.less index e0b25a2c8..07cf774c5 100644 --- a/packages/vant-cli/site/common/style/highlight.less +++ b/packages/vant-cli/site/common/style/highlight.less @@ -3,7 +3,6 @@ code { position: relative; display: block; - margin-top: 20px; overflow-x: auto; color: @van-doc-code-color; font-weight: 400; @@ -16,7 +15,11 @@ code { } pre { - margin: 0; + margin: 20px 0 0; + + + p { + margin-top: 20px; + } } .hljs {