[英]printing page with text cut off on right side
when i give the page to print... the text on the right hand side of the page gets cut off.... i gave text align left in print css but still not working... providing my code below.... 当我给页面进行打印时...页面右侧的文本被切除....我给文本在打印CSS中向左对齐,但仍然无法正常工作...在下面提供我的代码....
http://jsfiddle.net/jjnKP/ http://jsfiddle.net/jjnKP/
@media print {
body {
margin:0;
padding:0;
line-height: 1.4em;
word-spacing:1px;
letter-spacing:0.2px;
font: 17px Arial, Helvetica,"Lucida Grande", serif;
color: #000;
}
.mainDiv, .navbar,
.copyright {
display: none;
}
#templateTwoPadding {
padding: 0 0;
}
#tableHeadingLastDF {
text-align: left;
width: 134px;
border:1px solid white;
}
#makeLeftDF {
text-align: left;
}
.jumbotron .lead {
font-size: 12px;
}
}
I had the same thing happen to me on a project...everything kept getting cut off on the right side. 在一个项目中,我遇到了同样的事情……一切都在右边不断被切断。 :(
:(
I ended up "fixing" it by simply setting a width and being happy with it. 我最终通过简单地设置宽度并对其满意来“修复”它。 I don't think this post is the exact one I got my information from but looks good just the same.
我认为这篇文章与我获得的信息不完全相同,但是看起来一样。
I had same problem with SVG graphs, below css is worked for me. 我在SVG图上遇到了同样的问题,在CSS之下对我有用。
@media print {
body {transform: scale(.6);}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.