使文本在Chrome, Firefox, Safari中可点击


Making text clickable in Chrome, Firefox, Safari

我已经做了这个网站www(.)ionisedmesh(.)com和一个最新的新闻框在顶部,但问题是,虽然博客文章的标题是可点击的Internet Explorer,他们不能点击,而使用Firefox或Chrome,我没有测试过Safari,但我确信它不会工作,如果它不工作在Chrome。这是我的代码,有什么建议吗?

<div id="freshlyWrapper">
<div id="freshlyposts">
<?php
$freshlyIonised = new WP_Query();
$freshlyIonised->query('category_name=FreshlyIonised&showposts=6');
while($freshlyIonised->have_posts()):
$freshlyIonised->the_post();    
$title = get_the_title();
if (strlen($title) > 46)
$title = substr( $title, 0 , 46 ) . "..."; // Limits title to 20 characters.
?>  
<div class="freshlyionisedbox"><h3><a style='text-decoration: underline; color: #000;' href="<?php the_permalink(); ?>"><?php echo $title; ?>
</a></h3>
</div>

你的HTML没有问题。我刚刚用Safari的网络检查器检查了你的页面(就像Firebug一样),似乎你的谷歌广告DIV和你的Facebook DIV用你的标题掩盖了DIV。我删除了这两个,你的标题是可点击的。我认为你需要改变它们的位置,也许是float:right ?

相关文章: