显示隐藏-visibility(HTML、CSS)
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>显示隐藏-visibility</title><style>.baba {visibility: hidden;/* 此时其隐藏 *//* 只是其自动隐藏,下方的盒子不重叠上去 其位置保留 */width: 200px;height: 200px;background-color: skyblue;}.mama {width: 200px;height: 200px;background-color: green;}</style></head><body><div class="baba">a</div><div class="mama">b</div></body></html>