Firefox打印背景图片错误? [英] Firefox print background image bug?

查看:66
本文介绍了Firefox打印背景图片错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打印我的网页时,当我从Firefox打印
时,背景图像会严重缩小,但是当我在IE中打印时它会像我一样切割它。

期待它至。这是一个错误还是我的代码中有错误?


< ---------------------- ----我的代码----------------------------->


< ;!DOCTYPE html PUBLIC" - // W3C // DTD XHTML 1.0 Transitional // EN"

" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional .dtd">

< html xmlns =" http://www.w3.org/1999/xhtml">

< head>

< title> Untitled Document< / title>

< meta http-equiv =" Content-Type"含量=" text / html的; charset = iso-8859-1"

/>

< style>

#masthead {

保证金:0 0 0 0;

填充:0 0 0 0;

背景:#006633 url(images / secondary_mast.jpg)无重复中心;

身高:150px;

}

< / style>

< / head>

< body>

< div id =" masthead">& nbsp;< / div>

< / body>

< / html>

When I print my web page the background image shrinks severly when I
print from Firefox, but when I print in IE it cuts it like I would
expect it to. Is this a bug or is there a mistake in my code somewhere?

<--------------------------MY CODE----------------------------->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<style>
#masthead{
margin:0 0 0 0;
padding:0 0 0 0;
background:#006633 url(images/secondary_mast.jpg) no-repeat center;
height:150px;
}
</style>
</head>
<body>
<div id="masthead">&nbsp;</div>
</body>
</html>

推荐答案

" ye ***** @ gmail.com" <叶***** @ gmail.com>写道:
"ye*****@gmail.com" <ye*****@gmail.com> wrote:
当我打印我的网页时,当我从Firefox打印时,背景图像会严重缩小,但是当我在IE中打印时,它会像我那样切割它。 >期待它。这是一个错误还是我的代码中有错误?


是否收缩以适合页面宽度勾选在FF'的打印首选项?你知道

在大多数浏览器中都禁用了bg图像的打印,因此你不能依赖它为客户工作的


< --------------------------我的代码------------------- ---------->
When I print my web page the background image shrinks severly when I
print from Firefox, but when I print in IE it cuts it like I would
expect it to. Is this a bug or is there a mistake in my code somewhere?
Is "shrink to fit page width ticked" in FF''s print prefs? You do know
that printing of bg images is disabled in most browsers, thus you can''t
rely on it working for clients.
<--------------------------MY CODE----------------------------->




请不要在群组中发布代码,提供网址。

-

Spartanicus



Please don''t post code in the group, provide an url.

--
Spartanicus


我为发布代码而道歉。我不知道。是的我意识到它在大多数浏览器中都被禁用了
。我选择打开

背景图片的打印。此外,我缩小以适应页面宽度,也可以在

FF中打印。

I apologize for posting the code. I didn''t know. Yes I realize that it
is disabled in most browsers. I have opted to turn printing of
background images on. Also, I have shrink to fit page width ticked in
FF also.


" Wile E." <叶***** @ gmail.com>写道:
"Wile E." <ye*****@gmail.com> wrote:
我缩小以适应页面宽度,也可以在FF中打勾。
I have shrink to fit page width ticked in
FF also.




你试过吗没有?


-

Spartanicus



Did you try it without?

--
Spartanicus


这篇关于Firefox打印背景图片错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆