<style> p{ width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } </style>
<body> <div class="box"> <p>hello world!hello world!hello world!hello world!hello world!</p> </div> </body>
<style> p{ width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } </style>
<body> <div class="box"> <p>hello world!hello world!hello world!hello world!hello world!</p> </div> </body>