五大联赛官网平台2020年年度质量报告(20201230).pdf
"; var newstr = document.all.item(printpage).innerHTML; var oldstr = document.body.innerHTML; document.body.innerHTML = headstr+newstr+footstr; window.print(); document.body.innerHTML = oldstr; return false; }; $(function(){ $(".J_font").click(function(){ var thisEle = $("#J_content").css("font-size"); var textFontSize = parseFloat(thisEle , 10); var unit = thisEle.slice(-2); //获取单位 var cName = $(this).attr("data"); if(cName == "bigger"){ textFontSize += 2; }else if(cName == "smaller"){ textFontSize -= 2; } $("#J_content").css("font-size", textFontSize + unit ); }); });