react + es6中
css样式为:
overflow:hidden; /*超出宽度部分的隐藏*/ white-space:nowrap; /*文字不换行*/ text-overflow:ellipsis; /*超出则...代替*/
要设置宽度,可以设为行内样式:style={{ width: document.body.clientWidth - 30 }}
react + es6中
css样式为:
overflow:hidden; /*超出宽度部分的隐藏*/ white-space:nowrap; /*文字不换行*/ text-overflow:ellipsis; /*超出则...代替*/
要设置宽度,可以设为行内样式:style={{ width: document.body.clientWidth - 30 }}