PHP - 在Chrome和IE8中显示的网址正常,但在Firefox 3.0.11中不显示 [英] PHP - URL displays fine in Chrome and IE8, but not in Firefox 3.0.11
问题描述
我的网站列印表格中的网址。在Chrome和IE8中,网址看起来很棒。在Firefox 3.0.11中,URL只显示直到第二个正斜杠。
My site prints out URLs in a table. In Chrome and IE8, the URLs look great. In Firefox 3.0.11, the URLs only display up until the second forward slash.
例如,nytimes.com/pages/world/americas/index.html在Firefox中只是nytimes.com/pages。
So for example, "nytimes.com/pages/world/americas/index.html" is just "nytimes.com/pages" in Firefox.
任何想法为什么?代码如下。
Any ideas why? The code is below.
编辑:我开始认为这是一个CSS问题,因为当我删除我的样式,链接在Firefox中正确显示。
I'm beginning to think this is a CSS issue because when I remove my styles, the link displays correctly in Firefox. I'm going to re-post this as a CSS issue.
提前感谢,
John
print "<td class='sitename'>".'<a href="http://'.$row['site'].'" class="links2">'.$row['site'].'</a>'."</td>";
编辑:这是一个结果的HTML打印输出:
here is an HTML printout of a result:
<td class='sitename'><a href="http://en.wikipedia.org/wiki/Miami" class="links2">en.wikipedia.org/wiki/Miami</a></td>
在Firefox中,只显示en.wikipedia.org/wiki
In Firefox, it only displays "en.wikipedia.org/wiki"
推荐答案
只是为了确保,因为一些 Firefox附加组件会产生不可预测的行为。在安全模式下运行Firefox,然后检查。
Just to make sure, and because some Firefox Add-ons do unpredictable behavior. Run Firefox in the safe mode, and check it.
这篇关于PHP - 在Chrome和IE8中显示的网址正常,但在Firefox 3.0.11中不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!