<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript"></script>
<style type="text/css">
.textoverflow a {
     display:block;
     width:120px;
     margin: 0px 0px 0px 3px;
     white-space: nowrap;
     overflow: hidden;
     float: left;
     -o-text-overflow: ellipsis;    /* for Opera */
     text-overflow: ellipsis;        /* for IE */
}

.textoverflow:after{ 
    content: "…"; 
}/* for Firefox */

@media all and (min-width: 0px){ 
    .textoverflow:after{ 
        content:""; 
    }/* for Opera */ 
}
</style>
</head>

<body>
    <div class="textoverflow">
        <a> dfdlaiewuroiewqfjkdlsjfdksaifudsadfs</a>
    </div>
</body>
</html>

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2021-11-15
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-10-24
  • 2021-11-05
  • 2021-11-05
  • 2021-11-22
相关资源
相似解决方案