87,910
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
$(function() {
var div1 = $("#div1");
div1.hover(function() {
if (parseInt(div1.css("height")) >= 100) {
var _this = $(this);
_this.css("height", 100).css("overflowY", "scroll");
}
}, function() {
var _this = $(this);
_this.css("height", 100).css("overflowY", "hidden");
});
});
</script>