[英]Making text clickable in Chrome, Firefox, Safari
I have made this website www(.)ionisedmesh(.)com and a latest news box on the top but the problem is that while the blog posts headings are clickable in Internet Explorer, they cannot be clicked while using Firefox or Chrome, I havent tested with Safari but I am sure it wont work on it too if it doesnt work on Chrome. 我已经将该网站www.ionisedmesh(.com)放在了顶部,并在顶部放置了一个最新的新闻框,但问题是,尽管可以在Internet Explorer中单击博客文章标题,但在使用Firefox或Chrome时无法单击它们,但我没有已在Safari上进行了测试,但我敢肯定,如果它在Chrome上无法正常运行,它也将无法正常运行。 Here's my code, any suggestion?
这是我的代码,有什么建议吗?
<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>
There's nothing wrong with your HTML. 您的HTML没错。 I've just checked your page using Safari's Web Inspector (it's like Firebug) and it seems your Google Ads DIV and your Facebook DIV are covering up the div with your headlines.
我刚刚使用Safari的Web检查器(就像Firebug)检查了您的页面,看来您的Google Ads DIV和Facebook DIV覆盖了您的标题。 I removed those two and your headlines are clickable.
我删除了这两个,您的标题可点击。 I think you need to change how they're positioned, perhaps a
float:right
? 我认为您需要更改其位置,也许是
float:right
吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.