简体   繁体   English

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

[英]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.

相关问题 Chrome,Safari(而非FireFox)中的POST限制 - POST limit in Chrome, Safari, not FireFox 代码可在Chrome,Firefox和Safari中运行,但不能在IE或Opera中运行 - Code working in Chrome, Firefox and Safari but not in IE or Opera 网站无法在FireFox上运行,但可以在Safari和Chrome上运行 - Website not working on FireFox but works on Safari and Chrome jQuery,可以在Chrome中正常运行,但不能在Firefox和Safari中运行 - Jquery,working fine in Chrome, but not in Firefox and Safari 会话未在Firefox,Safari或Chrome中举行 - Session Not Being Held in Firefox, Safari, or Chrome ajax 在 chrome 上工作但不能在 firefox 和 safari 上工作 - ajax post working on chrome but not working on firefox and safari 从 php 脚本制作可点击的文本 - making clickable text from php script 某些图片在Firefox中仅显示替代文本,但在Safari或Chrome中可以很好地加载,而同一页面上的其他图像也可以很好地加载 - Some images only showing alt text in Firefox but load fine in Safari or Chrome yet other images on the same page load fine 链接在Chrome和Firefox中不可点击,直到打开开发人员工具 - Links un-clickable in Chrome & Firefox until developer tools are opened jQuery倒计时在Safari中显示NaN,在Chrome / Firefox中正常运行 - Jquery Countdown Showing NaN in Safari, Works fine in Chrome / Firefox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM