Firefox ... SVG ...下划线...为了基督的缘故吗? [英] Firefox ... SVG ... Underline ... how for christ's sake?

查看:106
本文介绍了Firefox ... SVG ...下划线...为了基督的缘故吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据谷歌的研究结果,这个问题已经有五年多的时间了。 。不知道怎么回事?发生了什么事?



有人知道任何有效的解决方法或甚至是为什么他们没有修复还没完成!? ...我对此非常好奇

在我的 Firefox中,一个<$ c $

如果我将它包含在正确的标记中,SVG中的ForeignObject 文本会被完全加下划线:

< html :> blub< / html:u>



...已将html声明为svg中的命名空间,示例代码如下所示:

 < div style =border:solid black 2px;> 
< svg:svg xmlns =http://www.w3.org/2000/svg
xmlns:html =http://www.w3.org/1999/xhtml
width =300height =50>
< foreignObject width =80height =50>
< html:u> blub< / html:u>
< / foreignObject>
< / svg:svg>
< / div>

这是您的解决方案吗?

Anything I tried failed so far to get Firefox to underline some text.

According to Google-results this issue is known and documented for more than five years ... that just can't be true ... what is going on?

Someone knows any consitently working workaround or maybe even a reason as to why they didn't fix it yet!? ... I am very curious about that

解决方案

In my Firefox, a ForeignObject text within an SVG gets perfectly underlined if I include it in the right tags:

<html:u>blub</html:u>

... having declared html as a namespace in the svg, sample code looks like this:

<div style="border:solid black 2px;">
<svg:svg xmlns="http://www.w3.org/2000/svg"
  xmlns:html="http://www.w3.org/1999/xhtml"
  width="300" height="50" > 
 <foreignObject width="80" height="50">
   <html:u>blub</html:u>
 </foreignObject>
</svg:svg>
</div>

Would that be a solution for you?

这篇关于Firefox ... SVG ...下划线...为了基督的缘故吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆