SVG文本溢出和工具提示

时间:2018-05-07 10:48:03

标签: javascript jquery html svg

我有一个svg元素。在文本标记中,当文本超过仅使用<svg viewbox="0 0 36 36" class="circular-chart green"> <path class="circle-bg" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" /> <path class="circle" stroke-dasharray="60, 100" d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831" /> <text x="18" y="10.35" class="questionText">Lorem Ipsum is simply dummy </text> </svg> 的svg宽度时,如何添加省略号和工具提示

/* code in Kotlin, but you get the meaning anyway */
val htmlContent = IOUtils.toString(assets.open("xml2json.txt")))
webView.loadData(htmlContent, "text/html", baseUrl)

0 个答案:

没有答案