jQuery Resizable div转换矩阵Text

时间:2015-08-05 20:50:36

标签: javascript jquery resize

我有这个代码,并且在div中调整文本大小是不对的:

$('#resizable').draggable().resizable({
    resize: function(evt, ui) {        
        var width = parseInt(ui.element.css('width')),
        height = parseInt(ui.element.css('height'));
        ui.element.css({
            'transform': 'matrix('+(width/25)+',0,0,'+(height/25)+',0,0)'
        });
    }
});

demo jsfiddle

有没有其他方法可以做到这一点,对不起我的英语。

0 个答案:

没有答案