本文介绍了css打印在A4页上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
打印时获取textarea topborder和滚动我只想禁用顶部边框并从打印页面滚动
On print am getting textarea topborder and scroll i just wanna disable top border and scroll from printed page
推荐答案
简单。在你的样式表中,只是添加这个漂亮的一点:
Oh, that's easy. In your stylesheet, just add this nifty little bit:
textarea{
border:0;
overflow:hidden;
}
Edit by Robert Pitt.
在打印上下文中特别定义css没有意义:
Would it not make more sense to specifically define the css within the print context:
@media print
{
textarea
{
border:0;
overflow:hidden;
}
}
这篇关于css打印在A4页上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!