function getDot(obj)
{
obj.each(function(){
if($(this).height() > 55)
{
$(this).css({height:"48px",overflow:"hidden"});
$(this).append('<span class="dot">...</span>');
}
})
}
function getDot(obj)
{
obj.each(function(){
if($(this).height() > 55)
{
$(this).css({height:"48px",overflow:"hidden"});
$(this).append('<span class="dot">...</span>');
}
})
}
js没有问题,要注意导入jquery。
css如果你的dot样式没写对的话(static定位),那么就是白加了,因为已经overflow:hidden了