---
title: "CSS 截取字符串长度以...代替"
author: "angkorpeach"
date: "2009-06-19T16:13:37Z"
tags: []
slug: "css"
draft: false
lastmod: "2009-06-19T16:13:37Z"
id: 411688
url: "https://angkor.iteye.com/blog/411688"
---

.newcss{  
   width:200px;  
   white-space:nowrap;  
   word-break:keep-all;  
   overflow:hidden;  
   text-overflow:ellipsis;

   border:1px solid #D4D4D4  
}