From 7bc447ca834c204bcfc4dbec69690959254d9b2c Mon Sep 17 00:00:00 2001 From: DCloud-yyl Date: Thu, 30 May 2024 21:13:28 +0800 Subject: [PATCH] Update visibility.md --- docs/css/visibility.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/css/visibility.md b/docs/css/visibility.md index a83028d4..c4d5d5ef 100644 --- a/docs/css/visibility.md +++ b/docs/css/visibility.md @@ -7,10 +7,16 @@ +**注意** +设置 visibility 为 hidden,或设置 display 为 none 都可以隐藏元素。差异是通过 visibility 隐藏元素仍然占据页面位置,通过 display 隐藏元素不占据页面位置。 + - \ No newline at end of file +#### App平台差异 +App平台设置如果元素的 visibility 设置为 hidden,其子元素将不可见,即使子元素的 visibility 设置为 visible 也不可见。 + + -- GitLab