简体   繁体   English

在 hover 上将图像更改为原始尺寸

[英]Change image to original size on hover

Some help needed here.这里需要一些帮助。

I have an image control in my aspx page:我的 aspx 页面中有一个图像控件:

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

The css class: 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.我想在图像的 hover 上将其缩放到其原始大小,而不仅仅是缩放它,因为每个图像都有自己的大小,并且在缩放它时,例如缩放 10,那么小图像很容易看到,但更大的图像不是这样伟大的。 Also it just scales the 50px by 50px size of the thumbnail and not the original size.此外,它只是将缩略图的 50px 大小缩放为 50px 大小,而不是原始大小。 I am using c# in the code behind.我在后面的代码中使用 c# 。

Any ideas???有任何想法吗??? Thank you in advance.先感谢您。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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