Home > Web Front-end > CSS Tutorial > Why doesn't CSS `area:hover` work to style my HTML image map areas?

Why doesn't CSS `area:hover` work to style my HTML image map areas?

Mary-Kate Olsen
Release: 2024-12-16 01:23:13
Original
469 people have browsed it

Why doesn't CSS `area:hover` work to style my HTML image map areas?

Sure, here is a properly formatted version of the article:

How to apply Hovering on html area tag?

Question:

I am trying to hover the area tag of HTML. I tried this in CSS:

area:hover
{
  border:1px solid black;
}
Copy after login

This is the HTML on which it should be applied.

<!-- This imagemap inserted by Gwyn's Imagemap Selector http://gwynethllewelyn.net/gwyns-imagemap-selector/ -->
<img src='http://dailyaeen.com.pk/epaper/wp-content/uploads/2012/09/27+Sep+2012-1.jpg?1349003469874' usemap='#imgmap_css_container_imgmap201293016112'>
Copy after login

The above is the detailed content of Why doesn't CSS `area:hover` work to style my HTML image map areas?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template