📜  如何在javascript代码示例中使div可见和不可见

📅  最后修改于: 2022-03-11 15:02:00.757000             🧑  作者: Mango

代码示例1
elem.style.display = 'none'; // hide
elem.style.display = 'block'; // show - use this for block elements (div, p)
elem.style.display = 'inline'; // show - use this for inline elements (span, a)