Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 悬停在表内的图像未显示完整图像大小_Html_Css_Hover - Fatal编程技术网

Html 悬停在表内的图像未显示完整图像大小

Html 悬停在表内的图像未显示完整图像大小,html,css,hover,Html,Css,Hover,HTML表格代码: <tr class="tr2"> <td class="td-center addonstitle">Addon Title</td> <td class="td-center addonsdescription">Description</td> <td class="td-center addonsauthor">Author</td> <td class="td-center ad

HTML表格代码:

<tr class="tr2">
<td class="td-center addonstitle">Addon Title</td>
<td class="td-center addonsdescription">Description</td>
<td class="td-center addonsauthor">Author</td>
<td class="td-center addonsscreenshot"><div class="hover_img"><a href="#">Show Image<span><img src="imagelink" alt="image"></a></div></td>
</tr>
当前,当您将鼠标悬停在“show image”链接上时,图像会显示出来,但它会缩小到表的大小(因此几乎隐藏),但是我希望当您将鼠标悬停在“show image”上时,它会显示完整的图像大小

我已经尝试设置了一个宽度/高度和溢出:对a:hover-span CSS可见,但是图像仍然只显示在表下的大小。此处显示的问题:(红色圆圈部分)(悬停的原始图像:)-悬停时应显示完整图像sSKurPk。。不是显示的小电流部件


编辑:必须删除HTML代码中的链接-“imagelink”链接到

是否有类似的内容

img {
    max-width: 100%;
}

这可以防止图像溢出/全尺寸。

嘿,唯一加载的img CSS代码如下:很难回答并找到解决此问题的方法,因为我们不知道整个代码/样式。
img {
    max-width: 100%;
}