【发布时间】:2015-01-12 13:27:51
【问题描述】:
我一直试图在我的网站上实现这种效果,但似乎代码不起作用。 这是sample site。
我主要是改这部分主题..
.main-content-area img.wp-post-image {
min-width: 100%;
height: auto;
}
.main-content .wp-post-image {
}
.main-content-area img {
max-width: 100%;
}
更改最小宽度和高度将反映更改,我不确定在悬停图像时该怎么做。任何建议都会有所帮助。谢谢!
【问题讨论】:
-
google "css hover",例如 ."
main-content-area img:hover {your css for hover event goes here}",。话虽如此,您正在寻找的可能是一个 jquery 解决方案。