工具提示(标题属性)正在被截断 [英] Tooltip(title attribute) is getting truncated

查看:98
本文介绍了工具提示(标题属性)正在被截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:
我正在一个产品上,我需要显示displaynames列表(单个字符串没有空格),显示名称的长度限制是256字符,所以一个用户可以选择一个单一的字符串与256个字符长。

Scenario: I am working on a product where i need to display list of displaynames(single string without spaces), the display name length limitation is 256 char, so a user can choose a single string with 256 char long.

问题:
选择选项标签用于显示名称: -

Issue: Select Option tags are used to display the names:-

      <select id="fileshares_0_0" name="fileshares_0_0">
              <option selected="" title="TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST">TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTE...</option>
      </select>

当悬停在所选选项上时,会截断标题。
请求的解决方案是显示完整的标题文本。

This truncates the title when hovered over the selected option. Solution requested is to display the complete Title text.

推荐答案

经过一些测试,似乎这是一个FF(至少22)问题。 IE8和Chrome正确包装文本。

I've been facing the same issue. After some testing, it seems that this is a FF (at least on 22) issue only. IE8 and Chrome properly wrap the text.

请注意,如果标题中有空格,则标题也会在FF中被破坏。在 bugzilla 中有一个Bug,显然已经解决了。但是,他们没有解决标题不包含空格的错误。

Please note that if there are spaces into the title, then the title gets broken in FF too. There was a Bug for that in bugzilla that is apparently solved. However they didn't solve the bug where the title contains no spaces.

您最好的解决办法是在Mozilla数据库中查找错误或创建一个新错误。

Your best bet for a fix would be either to look for a bug in the Mozilla database or create a new one.

希望我帮了一个忙。

这篇关于工具提示(标题属性)正在被截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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