JQuery max-height的value不能为数值

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,

相关文章
相关标签/搜索