JQuery max-height的value值只能是百分比和像素值,却不能指定为数值。css
像素值,right。ide
if (self.options.maxheight > 0) { self.dc.css({ "max-height" : self.options.maxheight + 'px', }); }
直接为数值时压根没有做用,wrong。code
"max-height" : self.options.maxheight,