0
這些鏈接(iframe src)有什麼區別? window.print()適用於window.print()在除url之外的url上工作
var myWindow=window.open('','','fullscreen=yes');
myWindow.document.write("<iframe src=\"http://stackoverflow.com/questions/11447382/window-print-does-not-take-the-current-url\" width=\"100%\" height=\"100%\"></iframe>");
myWindow.document.write('<iframe src="' + url + '" width="100%" height="100%"></iframe>');myWindow.document.close();
myWindow.focus();
myWindow.print();
但並非適用於
myWindow.document.write("<iframe src=\"http://localhost:8080/hiringsteps/docs/Keneth _1340800082258/Keneth _resume_1340800082258.pdf\" width=\"100%\" height=\"100%\"></iframe>");
那麼如何才能做到這一點 – 1355 2012-07-12 09:35:49