css 在 wordpress 主题上的错误位置徘徊

标签 css wordpress

我正在努力解决我网站上的悬停问题。每当我滚动一个产品时,产品说明就会显示在它下面,而我终究无法弄清楚如何修复它:

http://lovelylovely.me/shop/

它使用的是有感知的主题,但是在 firebug 中花了一些时间试图深入研究 css 之后,我仍然无法弄清楚如何移动产品描述,以便它显示在图像的顶部而不是下面

非常感谢任何帮助。谢谢!

最佳答案

我认为这对你有用:

// removes img from the flow, so doesn't push other elements down:
.product > img{position:absolute;z-index:1} 

//on hover, give the other elements positioning & z-index 
// so they're not hidden by the image:
.product:hover h3,
.product:hover .amount,
.product:hover .excerpt,
.product:hover .button add_to_cart_button product_type_simple
    {position:relative;z-index:2}

关于css 在 wordpress 主题上的错误位置徘徊,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10590929/

相关文章:

javascript - jQuery 链接在 WordPress function.php 中不起作用

javascript - Bootstrap 3 导航选项卡书签 url 不起作用

jquery - 展开/折叠不适用于某些浏览器

php - Wordpress - 特色图片元框未显示在自定义帖子类型上

wordpress - 奇怪的 CSS 背景图像调整大小

javascript - 如何根据变量在 jquery 中设置某些内容的宽度?

php - Wordpress 与 Xampp 本地服务器

html - IE 和 Firefox 需要不同的边距值吗?

css - 覆盖@font-face中的字体粗细

css - 如何使 div 垂直但与水平 div 的左下坐标对齐?