css.fathor { display: flex; } .son1{ flex: 1; overflow: hidden;}
.fathor { display: flex; } .son1{ flex: 1; overflow: hidden;}
其他参考
css.demo::-webkit-scrollbar { display: none; /* Chrome Safari */ } .demo { scrollbar-width: none; /* firefox */ -ms-overflow-style: none; /* IE 10+ */ overflow-x: hidden; overflow-y: auto; }
.demo::-webkit-scrollbar { display: none; /* Chrome Safari */ } .demo { scrollbar-width: none; /* firefox */ -ms-overflow-style: none; /* IE 10+ */ overflow-x: hidden; overflow-y: auto; }
cssoverflow: hidden; text-overflow: ellipsis; white-space: nowrap;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
需要使用 fill: #fff 才行,color 与 background 是没用的。
fill: #fff
color
background
可以使用:
cssfilter: grayscale(50%);
filter: grayscale(50%);
具体可以参考 MDN filter - CSS 层叠样式表