【发布时间】:2010-07-16 13:20:51
【问题描述】:
我有以下代码来加载新样式表以打印灯箱对话框:
$styleUrl = '../Content/styles/icis.dashboard.colorbox.print.css';
if (document.createStyleSheet) {
document.createStyleSheet($styleUrl);
}
else {
$('head').append('<link rel="stylesheet" type="text/css" href="../Content/styles/icis.dashboard.colorbox.print.css" media="print">');
}
如何限制在 IE 特定代码中打印的媒体类型?
【问题讨论】: