是否可以在 SVG 标题标签中包含多行?
<title> Name: Jon \n Address: NY </title>
我尝试添加\n 并应用一些 CSS 来打破标题文本,但它不起作用
最佳答案
实际的换行符是有效的,或者至少它们在 Firefox、Safari 和 Chrome 中是有效的。
<svg>
<rect width="300" height="150" fill="lime">
<title> Name: Jon
Address: NY </title>
</rect>
</svg>
关于html - 在 SVG 标题标签中添加换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66563053/