In my menu , i have two columns, one for submenu text and other for respective images. this portion is working fine. But i want to set a default image, which will display when user will not hover on any dropdown item or out of dropdown. but i have 2-3 dropdown menu. how to identify each individually. Thanks
code[https://jsfiddle.net/shreya_js/4h7sgpdL/48/]
I am not sure if I got your question right.
If you need a different default image for every main menu point, then append a url/image-path to the li -tag via data-src for example.
EDIT: something like this?
https://jsfiddle.net/2a3joxfz/7/
all a-tags got an rel attribute.
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.