【发布时间】:2017-07-07 12:59:32
【问题描述】:
我的 PHP 代码通过 SVG 显示文本。当我使用 IE 和 Firefox 时,一切都很好,但在 Chromium 上,我只是得到一张没有文字的图片。
<?php
echo "<svg width='1100' height='1620'>";
$text = "Some text to be shown";
echo "<text x=473 y=81 font-family='Verdana' font-size='18' fill='black'>
<a xlink:href='index.php'>
<a href='index.php'>$text</a></a>
</text>";
echo "</svg>";
?>
【问题讨论】:
-
不是向我们展示 PHP 端,而是向我们展示浏览器接收到的输出。这不是真正的 PHP 问题。看起来这可能是一个有趣的浏览器问题。
标签: google-chrome svg cross-browser