text-overflow:ellipsis
이 입력 필드에서 활성화되어 있는지 감지하여 전체 텍스트와 함께 툴팁을 표시 할 수 있는지 궁금합니다.텍스트 오버 플로우 : 입력란에서 줄임표가 활성화되어 있는지 감지합니다.
CSS는 :
input[type='text']
{
text-overflow:ellipsis;
}
HTML :
<input type="text" onmouseover="Tooltip.Show(this)" value="some long text" />
자바 스크립트 :
Tooltip.Show = function (input)
{
// This is where i need the see if the current input show ellipsis.
if ($(input).isEllipsisActive())
{
// Show the tooltip
}
}
BR
안드레아스 당신이 때 알고 싶은 경우
그것은 작동하지 않습니다
은 그냥 약간의 솔루션을 편집했다. –