简体   繁体   中英

Change image to original size on hover

Some help needed here.

I have an image control in my aspx page:

<dx:ASPxImage ID="ImgSeatPlan" runat="server" ShowLoadingImage="true" CssClass="thumbnail"></dx:ASPxImage>

The css class:

 .thumbnail {
            width:50px;
            height: 50px;
        }

I would like on hover of the image to zoom it to its original size not just scaling it because each image has its own size and when scaling it, lets say for example by 10, then small images are great to see but bigger ones not so great. Also it just scales the 50px by 50px size of the thumbnail and not the original size. I am using c# in the code behind.

Any ideas??? Thank you in advance.

.thumbnail:hover {
    width: inherit;
    height: inherit;
}

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