简体   繁体   中英

How to hover over an image and show an information box in angular?

I'm trying to hover over an image and while hovering over the image an information box pops up giving details about that picture. How do you do this in angular?

You can use basic CSS for this

<div id="parent">
    Some content
    <div id="hover-content">
        Only show this when hovering parent
    </div>
</div>


#hover-content {
    display:none;
}

#parent:hover #hover-content {
    display:block;
}

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM