打印div的内容,360浏览器好使,ie不好使怎么解决
<script language="javascript">
function printdiv(printpage) {
var headstr = "<html><head><title></title></head><body>";
var footstr = "</body>";
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;
}
</script>
------解决方案--------------------呵呵,被病毒迫害久了的用户,甚至会产生斯德哥尔摩综合征的。
------解决方案--------------------搞死360.。。
------解决方案--------------------try this:
http://www.cnblogs.com/insus/archive/2013/01/15/2861049.html