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.
我有一个 Javascript 滑块。滑块使用 5-6 个图像,并在关闭 javascript 时平行排列阻止文本。我只想在关闭 javascript 时显示单个图像。你能告诉我怎么做吗?
您可以在不想显示的元素上使用CSS并加上classwith 。display: none您可以在JavaScript初始化滑块之前删除该类。
CSS
class
display: none
JavaScript