Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你能告诉我如何使用 CSS 以编程方式显示或隐藏搜索框覆盖。
html:
<form> <input type="text" class="search-box" /> <form>
要隐藏的 CSS:
.search-box{ display:none; }
要显示的 CSS:
.search-box{ display:block; }