简体   繁体   English

图像链接在悬停时移动

[英]Image link moves on hover

I am modifying the footer of a wordpress site to include four affiliate logos and their associated homepage URLs. 我正在修改wordpress网站的页脚,使其包含四个会员徽标及其相关的首页URL。 Whenever the image is hovered over, the image container shrinks and moves the page below it up slightly, as well as jolting the image slightly to the left. 每当将图像悬停在上方时,图像容器都会收缩并将其下方的页面稍微向上移动,并将图像稍微向左移动。

URL: http://giant2.cogiva.com/ 网址: http//giant2.cogiva.com/

each image has the following CSS in addition to the theme default: 除了主题默认设置外,每个图像还具有以下CSS:

#image-9 a {
    outline: none;
    position: relative;
}

#image-9 a img {
    outline: none;
    position: relative;
}

#image-9 img {
    border: none;
    position: relative;
}

No hover: a img {padding: 4px } 无悬停: a img {padding: 4px }

On hover: a:hover img {padding: 0} 悬停时: a:hover img {padding: 0}

In style.css , find and replace, row 681 : style.css中 ,找到并替换第681行:

a img       { border:1px solid #dedede; padding:4px; }
a:hover img { border:5px solid #2d3e4f; }

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

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