不妙我有在IE的CSS问题CSS在IE
本页面看起来火狐,Chrome,歌剧罚款....但在IE上的“日期栏”第一<li>
栏上重叠
这里:http://www.animefushigi.com/latest-episodes
CSS是如下:
#content h2.other-posts {
height: 31px;
font-size:12px;
line-height: 31px;
background: #2c2b2b;
padding: 0 10px;
border: 1px solid #1b1b1b;
color: #888888;
margin-bottom:1px;
}
#content #other-posts {
list-style: none;
padding: 1px;
margin-top:15px;
margin-bottom:15px;
margin-left: 20px;
}
#other-posts li {
list-style: none;
background: #151515;
height: 30px;
line-height: 30px;
border-left: 1px solid #050505;
border-right: 1px solid #151515;
border-bottom: 1px solid #050505;
border-top:1px solid #0f0f0f;
margin-bottom: 1px;
padding: 0 10px;
}
#other-posts li a {
float: left;
}
WordPress的PHP文件如下:
<ul id="other-posts">
<?php
$postslist = get_posts('numberposts=50&order=desc&orderby=date');
foreach ($postslist as $post) : setup_postdata($post);
?>
<?php the_date('', '<h2 class="other-posts">Added on ', '</h2>'); ?>
<li><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a></li>
<?php endforeach; ?>
</ul>
如何使这个浏览器全部友好?
你没有IE浏览器的CSS问题,IE有CSS问题。 – 2010-09-06 04:21:54
如此真实,但我能做什么?我的访问者中有40%使用IE :( – GreatestSwordsman 2010-09-06 06:12:11
我的建议是要么执行全面的重置,要么使用我以前的* * margin:0; padding:0;}# – 2010-09-06 19:04:34