当前位置: 代码迷 >> Web前端 >> 文本溢出删节号
  详细解决方案

文本溢出删节号

热度:77   发布时间:2012-11-22 00:16:41.0
文本溢出省略号

<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery文本溢出</title>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.textEllipsis.js"></script>
<script>
?$(function(){
?
??$("p").textEllipsis({line:2, ellipsis: "......"});

?

?});
</script>


<style type="text/css">

?

???? p { width:200px;}

?

</style>


</head>

?

<body>


<p>

this is a testthis is a testthis is a testthis is a testthis is a testthis is a testthis is a testthis is a testthis is a testthis is a testthis is a testthis is a testthis is a test

</p>


</body>
</html>

  相关解决方案