word-wrap break-word does not work in this example

后端 未结 3 609
长发绾君心
长发绾君心 2020-12-07 18:44

I cannot get word-wrap to work with this example...







        
      
      
      
3条回答
  •  旧巷少年郎
    2020-12-07 18:58

    Work-Break has nothing to do with `inline-block`.
    
    Make sure you specify `width` and notice if there are any overriding attributes in parent nodes. Make sure there is not `white-space: nowrap`.
    
    See [this][1] codepen.
    
    
    
    
    
    
    
    
      
      

    Note: Mind that, as for now, break-word is not part of the standard specification for webkit; therefore, you might be interested in employing the break-all instead. This alternative value provides a undoubtedly drastic solution; however, it conforms to the standard.

提交回复
热议问题