是否可以在此工具提示中插入换行符? [英] is it possible to insert a line break in this tooltip?

查看:123
本文介绍了是否可以在此工具提示中插入换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张漂亮的美国地图:

http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg



我想用多行功能实现一个工具提示,例如在这里通过红色方块:

http://www.carto.net/papers/svg/gui/tooltips/



<请帮我开始这个。我会为此提供最大的赏金。

您有多少个项目正在开发?


工具提示是由浏览器生成的快速弹出窗口;您应该使用 \\\
在JavaScript中设置 .title 属性。


i have a pretty map of the US:

http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg

i would like to implement a tooltip with multiline functionality such as here over the red square:

http://www.carto.net/papers/svg/gui/tooltips/

please help me get started on this. i will be offering a maximum bounty on this.

解决方案

You never cease to amaze me, I__! How many projects are you working on?

Tooltips are browser-generated quick popups; you should use \n to set the .title attribute in JavaScript.

这篇关于是否可以在此工具提示中插入换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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