挨拶!
私はhtmlとjavascriptを学ぶのに苦労している初心者です-ゆっくりとそこに着きます。SimpleModalによって提供されるDIVを印刷しようとしています。ページは次のとおりです。
www.planetsarsfield.com
この「印刷」機能は、下部のレシピボックスにあります。FFではすべてがうまく機能しますが、IE8ではまったく機能しません。私は根本的に間違ったことをしているに違いありませんが、それを見つけることはできません。
何か案は?
乾杯、TY +++++++++++++++++++++++++++++++++++++++++++++++ +
<script type="text/javascript">
function PrintElem(elem)
{
Popup($(elem).html());
}
function Popup(data)
{
var mywindow = window.open('', 'basic-modal-content', 'height=400,width=600');
mywindow.document.write('<html><head><title>on the grill... latest recipe</title>');
mywindow.document.write('<link href="PATH/print.css" rel="stylesheet" type="text/css" />')
mywindow.document.write('</head><body >');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.document.close();
mywindow.print();
return true;
}
</script>