How does “#” (hash mark, number sign) close a modal box?
问题 I recently read this article about creating a pure CSS modal box: Creating a modal window with HTML5 & CSS3 I've tested the code and it works great. I'm using it for my site's contact and register/log-in pages. There is one part of the code I haven't fully grasped. How does this... <a href="#close" title="Close" class="close">X</a> ... close the box? There is nothing in the CSS that hides or removes an element with a close class, nor any similar function targeting href , #close or title . It