I have a Javascript slider. The slider uses 5-6 images and lines up parallel blocking the text when the javascript is turned off. I just want to display a single image when javascript is turned off. Could you please let me know how can this be done?
You could use CSS
and put a class
with display: none
on the elements you don't want to display. With JavaScript
you can remove that class then before initializing the slider.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.