<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.a {
display: flex;
width: 400px;
height: 200px;
background-color: skyblue;
}
.b {
flex: 1;
width: 0;
}
.txt {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
</style>
</head>
<body>
<div class="a">
<div class="b">
<div class="txt">111111111111111111111111111111111111111111111111</div>
</div>
</div>
</body>
</html>