前言 本系列主要整理前端面试中需要掌握的知识点。本节介绍隐藏页面元素的方法。 文章目录 前言 一、隐藏方式介绍 二、表格对比 一、隐藏方式介绍 <head> <style> div { float: left; width: 100px; height: 100px; background-color: skyblue; margin: 10px; } </style> </head> <body> <div class=