【发布时间】:2011-11-07 21:55:49
【问题描述】:
我创建了一个缩略图网格,当将鼠标悬停在上面时,图片会消失,并显示块颜色并显示图像的标题。但是在 Internet Explorer 中,图片和文字不会出现在他们设置的缩略图空间中,它们都在左下角出现。
图片和标题存储在box/category-widescreen div中,这是wordpress的动态代码。
有什么想法吗?
#page-wrap {width: 1060px; padding-bottom: 40px;}
.box { margin: 20px; float: left; }
.category-widescreen { width: 400px; height: 229px; background: #FF0000; }
.category-widescreen a{text-decoration: none;}
.category-widescreen h1{font-size: 30px; color: #FFF; line-height: 34px;}
.category-widescreen h2{font-size: 26px; color: #FFF; line-height: 30px;}
.title{position:absolute; top:14px; left:14px; z-index: 0; padding-right: 14px;}
.category-widescreen img { max-width: 400px; max-height: 229px; float: right; padding: 0 0 2px 10px; z-index:1; position:relative;}
感谢您的帮助!
【问题讨论】:
-
介意至少给出基本的html结构吗? ..以及最好的实际示例页面(jsfiddle.net)
标签: css internet-explorer thumbnails css-position