我知道SVG有一个<title>
元素。当用户将鼠标悬停在文本上时,我希望将标题显示为多行。我该怎么做?
<text>
hoverthis
<title>one <br/> two<title>
</text>
答案 0 :(得分:0)
使用回车。
<svg>
<rect fill="blue" width="100%" height="100%">
<title>one
two</title>
</rect>
</svg>