更新时间:2022-10-19 18:17:01
You could get the width of the view-port and the width of the content, then scale the content down based on a ratio of the two:
var venderPrefix = ($.browser.webkit) ? 'Webkit' :
($.browser.mozilla) ? 'Moz' :
($.browser.ms) ? 'Ms' :
($.browser.opera) ? 'O' : '';
var ratio = $(window).width() / $('#newContent').width();
$('#newContent').css(venderPrefix + 'Transform', 'scale(' + ratio + ')');