把超出的字体设置为省略号

对块元素设置以下三点就OK了

          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;

if you need a example,here are you .



    
        
        
        
    
    
        
  • 111111111111111111111111111111111111
  • 22222222222222222222222222222222222222222222222
  • 333333333333333333333333333333333333333333333333333333333333333

你可能感兴趣的:(把超出的字体设置为省略号)