css visibility
时间: 2023-10-15 19:26:01 浏览: 178
CSS的visibility属性用于确定元素是显示还是隐藏的。这个属性有几个可能的取值,包括visible、hidden、collapse和inherit。visible表示元素可见并显示,hidden表示元素不可见但仍然占据空间,collapse在表格元素中会删除一行或一列,不会影响表格的布局,而在非表格元素中和hidden的效果一样。inherit表示元素会继承父元素的visibility属性值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [CSS Display与Visibility的不同](https://download.csdn.net/download/weixin_38640830/12890859)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [CSS中的visibility](https://blog.csdn.net/weixin_42966484/article/details/103717667)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [CSS中visibility 属性](https://blog.csdn.net/weixin_49272677/article/details/113802739)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文