$('.inner-text').on('click',function () {
var scrollHeight = $(this)[0].scrollHeight
var height = $(this).height()
if(scrollHeight > height){
console.log('此元素文本被省略')
}
})
jquery 判断文字是否超出div出现三个点的省略号
最新推荐文章于 2023-10-30 10:09:54 发布