element td 内容超出隐藏

.ellipsis {
            display: inline-block;
            width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            word-break: normal !important
        }
<el-table-column
                    label="实际地址" width="150">
                <template slot-scope="scope">
                    <el-popover trigger="hover" placement="top">
                        <p>{{scope.row.newAddress}}</p>
                        <div slot="reference" class="name-wrapper">
                            <span class="ellipsis" style="width: 90px">{{scope.row.newAddress}}</span>
                        </div>
                    </el-popover>
                </template>
            </el-table-column>

 

posted @ 2021-07-26 16:58  小不点灬  阅读(728)  评论(0编辑  收藏  举报