使内容属性文本可选

时间:2012-04-18 07:21:19

标签: css css3

我有一个很酷的工具提示,可以使用一些数据属性,如下所示: http://www.frequency-decoder.com/demo/css-tooltips/

但问题是工具提示中的文字是不可选的,即使我添加了属性:

cursor: text;

知道如何选择工具提示吗?

由于

更新: 这似乎也没有帮助:

-webkit-touch-callout: all;
-webkit-user-select: all;
-khtml-user-select: all;
-moz-user-select: all;
-ms-user-select: all;
user-select: all;

值:无|文字|切换|元素|元素|所有|继承

价:

How to disable text selection highlighting using CSS?

http://www.w3.org/TR/2000/WD-css3-userint-20000216#user-select

2 个答案:

答案 0 :(得分:1)

没有办法让它可以选择。提示必须仅存在于:悬停元素。我很难将鼠标移到提示本身上。

顺便说一下,我建议从css中移除动画(并使不透明度:1)它更好,更灵敏。

答案 1 :(得分:1)

这不是执行此操作的工具提示。

尝试使用像这样的jQuery (随机谷歌搜索:http://jquerytools.org/demos/tooltip/index.html

或者使用工具提示脚本汇编查看此网站 http://www.1stwebdesigner.com/css/stylish-jquery-tooltip-plugins-webdesign/