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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM