解决办法,父div设置min-width:0即可:
<div style="width:100%;display:flex;height:80px"><div style="width:50px"><img src="~/Content/Img/2.png" style="height:50px;" /></div><div style="flex:1;min-width:0"> <div style="width:100%;height:40px;text-align:left;font-size:16px"> ******* </div> <div style="width:100%;height:40px;text-align:left;font-size:14px;padding-left:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"> ********* </div> </div> <div class="clearfix"></div> </div>
评论前必须登录!
注册