css 1行が部分を超えて省略記号を表示


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