1、line-height:1;
根据该元素本身的字体大小 设置行高 比如该元素字体是15px line-height:1; 的行高就是15px;
2、flex:1;
flex有三个参数:flex-grow,flex-shrink,flex-basic,
3、white-space: nowrap;//强制不换行
1、line-height:1;
根据该元素本身的字体大小 设置行高 比如该元素字体是15px line-height:1; 的行高就是15px;
2、flex:1;
flex有三个参数:flex-grow,flex-shrink,flex-basic,
3、white-space: nowrap;//强制不换行