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