我正在开发一个项目,我需要通过window.print()函数打印文档。当我尝试打印页面时,它会使小L(l)和小I(i)粗体。它们看起来都一样。很难区分它们。
@media print {
*,*:before,*:after {color: #000 !important;text-shadow: none !important;background: transparent !important; -webkit-box-shadow: none !important;box-shadow: none !important;}
a,a:visited {text-decoration: underline;}
a[href]:after {content: " (" attr(href) ")";}
abbr[title]:after {content: " (" attr(title) ")";}
a[href^="#"]:after,a[href^="javascript:"]:after {content: "";}
/** Don't show links for images, or javascript/internal links */
.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after {content: "";}
pre,blockquote {border: 1px solid #999;page-break-inside: avoid;}
thead {display: table-header-group; /* h5bp.com/t */ }
tr,img {page-break-inside: avoid;}
img {max-width: 100% !important;}
@page {margin: 0.5cm;}
p,h2,h3 {orphans: 3;widows: 3;}
h2,h3 {page-break-after: avoid;}
.print_hide{display:none !important;}
.a_page_b{page-break-inside: avoid;}
}