使用了
div.titleholder {
font-family: ms sans serif, arial;
font-size: 8pt;
width: 100;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
如何在鼠标移上时,或者使用其他方式来显示完整信息?
使用了
div.titleholder {
font-family: ms sans serif, arial;
font-size: 8pt;
width: 100;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
如何在鼠标移上时,或者使用其他方式来显示完整信息?
div.titleholder:hover {
text-overflow:inherit;
overflow: visible;
white-space: pre-line;
}
http://www.w3school.com.cn/tiy/t.asp?f=css3_text-overflow_hover
是这样么?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div { width:100px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
div:hover { width:auto; }
</style>
</head>
<body>
<div>算哒垃圾死分拉萨机aldj都是sd</div>
</body>
</html>
3 回答1.6k 阅读✓ 已解决
5 回答1.6k 阅读
5 回答1.9k 阅读✓ 已解决
4 回答1.4k 阅读✓ 已解决
2 回答1k 阅读✓ 已解决
4 回答1.7k 阅读
2 回答1.5k 阅读✓ 已解决
最简单的做法,给标签增加
title
属性,并赋上要显示的内容。