LI中内容超过长度后以省略号显示的方法

LI中内容超过长度后以省略号显示的方法
此方法适用与IE与OP浏览器
<style type="text/css">
<!--
li {
     200px;
     white-space:nowrap;
     text-overflow:ellipsis;
     -o-text-overflow:ellipsis;
     overflow: hidden;
     }

-->
</style>

原文地址:https://www.cnblogs.com/ahjesus/p/1998638.html