【发布时间】:2012-05-21 08:30:44
【问题描述】:
我在使用 IE8 时遇到问题:它没有在此网站上显示特色图片:http://www.melisayavas.com/news/
这是我的functions.php中用于输出特色图片的代码:
if ( function_exists( 'add_theme_support' )) {
add_theme_support( 'post-thumbnails' );
}
if ( function_exists('add_image_size')) {
add_image_size('news-thumb', 200, 200);
}
这是用于特色图片的 CSS:
.post-thumb {
float: left;
padding: 10px;
}
特别是对于 IE8,我有这个 CSS:
.post-thumb img {
float: left\9;
margin-top: 10px\9;
margin-right: 10px\9;
}
如果我向.post-thumb element 添加边距或宽度,图像会显示在 IE8 上,但我不需要固定的宽度或高度。我不明白为什么它不拾取图像的宽度和高度。
【问题讨论】:
标签: css wordpress internet-explorer-8