打印网页背景图像和颜色? [英] Print webpage with background images and colors?
问题描述
我如何打印网页究竟是怎么样子? - 我的意思是有背景图像和颜色
How can i print a webpage exactly how it looks like -- I mean with background images and colors?
(在IE)
Zeesahn
Best Zeesahn
推荐答案
在IE浏览器,这是从浏览器进行配置。检查的细节本教程。虽然我怀疑你正在寻找一个CSS的解决方案。我一直没能以一致的方式来做到这一点。
In IE this is configurable from the browser. Check this tutorial for the details. Though I suspect you are looking for a css solution. I have not been able to accomplish this in a consistent fashion.
这是可能是最好的解决办法,我所遇到的。它涉及的list-style ...规则试图完成这项工作。祝你好运。
This is probably the best solution I have come across. It involves list-style... rules to attempt to get the job done. good luck.
#ti\tle { /* 6. */
display: list-item; /* 1. */
list-style-image: url(banner.jpg); /* 2. */
list-style-position: inside; /* 3. */
letter-spacing: -1000em; /* 4. */
font-size: 1pt; /* 5. */
color: #fff; /* 5. */
}
一些注释:
- 我们给我们的H1列表项的特点。
- 我们pretend我们的旗帜形象是一个列表式的形象。
- 火狐希望你把图像里面。
- 我们使文本消失成马拉其的图片替换(MIR)的手段黑洞
- 作为MIR不能在Opera工作,我们设置字体大小来为1pt,使文字白色。这能与Opera的默认打印
设置。其他图片替换技术依赖于移动或
隐藏的机制,所有这些也将隐藏我们的形象。于是
小,白色的文字。 - 作为列表样式图像不会在IE5和IE5.5的支持,我们排除这些浏览器有一个简单的逃脱黑客攻击。
这就是全部。它工作在IE6,Firefox 1.0及1.5和Opera 8.5 - 不知道的Safari浏览器,但我相信没有问题。 Konqueror的3.5显示了一个黑色的H刚刚旗下 - 但是,
That's all. It works in IE6, Firefox 1.0 and 1.5 and Opera 8.5 - don't know about Safari, but I expect no problems. Konqueror 3.5 shows a black "H" just below the banner - however, the
这篇关于打印网页背景图像和颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!