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,
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,