指针事件/悬停更改大小或禁用

时间:2015-07-23 21:04:12

标签: html css hover

当您将鼠标悬停在"相关文章上时#34;页面的一部分 - 悬停效果会创建一个巨大的红色框 - 是否有一种方法可以使其与文章预览大小相同或者如果没有则禁用它?

http://insightcxo.com/5-ways-to-increase-profit-this-year/

虽然在主页上运行良好:

http://insightcxo.com/

干杯!

1 个答案:

答案 0 :(得分:2)

按如下方式修改你的css:

.related-item figure {
    background-color: #222222;
    width: 100%;
    height: auto;
    position: relative;
    background-color: #212121;
}

这会使其行为与您首页中的内容相同。

相关问题