Hide an Image when another Image/Item is clicked usin css only?
问题 I need to make this happen, and to make it without using jQuery, I saw a working example, but when I coded my own it couldn't hide the image as I wanted. Here is the line from .css that is supposed to help me hide an image when I click on another one: /*Selected image display*/ .image-gallery .big-image img:target{display:block;} /*on select image dusplay none the default image*/ .image-gallery .big-image img:target ~ img#default{display:none;} /*Shoe Default Image in first load*/ .image