Closed. This question needs to be more focused。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗?更新问题,使其仅通过editing this post专注于一个问题。
                        
                        9个月前关闭。
                                                                                            
                
        
当文本太长时,不仅在空格上而且在每个字符上都可能换行吗?

示例:http://jsbin.com/yaxeyeko/1/edit

最佳答案

这样的事情。希望我理解正确

FIDDLE

div {
  width: 20px;
  background: red;
  word-wrap: break-word;
}


FIDDLE

div {
  width: 20px;
  background: red;
  word-break:break-all;
}

10-05 21:00
查看更多