以下是标记:
可能是重复问题:
使用jQuery检测DIV中是否存在滚动条?
如下所示,有些标记:
<div class="content">Lorem</div>
<div class="content">Lorem Iorem Lorem Iorem Lorem Iorem Lorem Iorem Lorem IoremLorem Iorem Lorem Iorem Lorem Iorem</div>
<div class="content">Lorem</div>
<div class="content">Lorem</div>
如果内容有滚动条,则应将类添加到该div,如“scroll-image”。
高度可以不同于DIV。 有没有jQuery解决方案。