Я хочу использовать свойство переполнения текста по ссылке. Я работаю над абзацем, но не для ссылки.
Вот код HTML
<div>
<ul>
<li>
<p>the text is too long</p>
</li>
<li>
<a href="javascript:alert('test')">the link is too long</a>
</li>
</ul>
</div>
Вот код css:
a {
white-space: nowrap;
width:50px;
overflow: hidden;
text-overflow: ellipsis;
}
p {
white-space: nowrap;
width:50px;
overflow: hidden;
text-overflow: ellipsis;
}
См. пример http://jsfiddle.net/corinnekm/LLVDB/
Большое спасибо за вашу помощь.