매우 긴 텍스트 값을 자르려면 div에 text-overflow: ellipsis
을 사용하고 있습니다. 기본적으로 URL에 공백이 없으므로 div의 너비를 늘리는 오버플로를 방지해야합니다. 내가 뭘해야 표시 않습니다 :처음에 문자열 자름
http://www.somewebsite.org/over-the-counter/drugs/medone.html
http://www.somewebsite.org/over-the-counter/drugs/medtwo.html
http://www.somewebsite.org/over-the-counter/drugs/medthree.html
같이
...he-counter/drugs/medone.html
...he-counter/drugs/medtwo.html
...-counter/drugs/medthree.html
이에서 - 모든 HTML/CSS에서 행할 수 있습니까? 또는 jQuery/PHP 내 유일한 해결 무엇입니까?
말하자면 마우스 오버시 전체 문자열이 툴팁으로 표시됩니다. 툴팁에서
php [substr()] (http://php.net/manual/en/function.substr.php)는 –
을 염두에두고 있습니다. javascript 또는 php가 도움이 될 것입니다. (선호 php) –
http://stackoverflow.com/questions/9793473/text-overflow-ellipsis-on-left-side – Andreas