网页透明层 - 请帮助!! [英] Layer Transparent in Web Page - Please help!!

查看:49
本文介绍了网页透明层 - 请帮助!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,


我的名字是Pamela,我对javascript一无所知,

但是我想问一下它是否提供解决方案这个

我的问题。


我在css层的网页上有一张图片:


< DIV ID = MyLayer

STYLE =" position:absolute; top:68px; left:563px;

宽度:640px;高度:480px;">

< IMG src =" ReportImageBox_12.54.52.png" width = 640 height = 480>< / IMG>

< / DIV>


我需要这个图层中有一定颜色的部分

(例如white)呈现透明。


我的问题。是否有可能有一个简单的javascript函数

合并到网页中这样做?


非常感谢


-Pamela

..NET开发人员

Dear friends,

My name is Pamela, I do not know anything about javascript,
but I would like to ask if it offers a solution to this
problem of mine.

I have an image on a web page within a css layer:

<DIV ID=MyLayer
STYLE = "position: absolute;top:68px; left:563px;
width:640px;height:480px;">
<IMG src="ReportImageBox_12.54.52.png" width=640 height=480></IMG>
</DIV>

I need that the parts of this layer which have a certain color
(for instance "white") be rendered transparent.

My question. Is it possible to have a simple javascript function
to incorporate in the web page which does this??

Thank you very much

-Pamela
..NET Developer

推荐答案

ex ******** @ libero.it écrit:
亲爱的朋友们,

我的名字是Pamela,我对javascript一无所知,
但我想问一下它是否能解决我的这个问题。

< DIV ID = MyLayer
STYLE =" position:absolute; top:68px; left:563px;
width:640px; height:480px;">
< IMG src =" ReportImageBox_12.54.52.png" width = 640 height = 480>< / IMG>
< / DIV>

我需要这层有一定颜色的部分
(例如 ;白色)呈现透明。


这一层中有任何不透明的东西

只有一张图片...


让你透明背景图片你自己是问题


但是......也许这个图像已经透明了?

你只有使用带有PC的Internet Explorer才会遇到麻烦吗? br />
我的问题。有没有可能有一个简单的javascript函数
加入到这个网页?
Dear friends,

My name is Pamela, I do not know anything about javascript,
but I would like to ask if it offers a solution to this
problem of mine.

I have an image on a web page within a css layer:

<DIV ID=MyLayer
STYLE = "position: absolute;top:68px; left:563px;
width:640px;height:480px;">
<IMG src="ReportImageBox_12.54.52.png" width=640 height=480></IMG>
</DIV>

I need that the parts of this layer which have a certain color
(for instance "white") be rendered transparent.
there is anything opaque in this layer as is
only an image ...

make your transparent background image yourself is the issue

But ... perhaps this image is allready transparent ?
and you have troubles only with Internet Explorer with a PC ?
My question. Is it possible to have a simple javascript function
to incorporate in the web page which does this??




是的,你需要一个IE Windows(Mac它的OK)破解png图像

渲染。


问Google:IE hack png css

和... soluce:
http://webfx.eae.net/dhtml/pngbehavior /pngbehavior.html


祝你好运(不那么容易)


-

Stephane Moriaux et son [moins] vieux Mac



Yes, you need an IE Windows (Mac its OK) hack for png images
rendering.

ask Google : IE hack png css
and ... soluce :
http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

good luck (not so easy)

--
Stephane Moriaux et son [moins] vieux Mac


亲爱的Stephane


你的解决方案是针对png问题的(我在考虑)

一般,对于任何图像)。

然而,因为ie6仍然不支持png

透明度


我正在实现它并且有两个问题应该很简单一个

谁知道javascript


1.它假设com ponent放在一个外部文件中:

BEHAVIOR:url(" pngbehavior.htc")

因为我以编程方式生成代码我需要它来合并

组件

在网页中。如何修改上述调用以在页面内运行

组件?


< public:component>

< public:attach event =" onpropertychange"的OnEvent = QUOT;的PropertyChanged()" />

< script>

......

}


< / script>

< / public:component>


2.即阻止弹出窗口。有没有办法逃避它?


谢谢!!


Pamela

Dear Stephane

Your solution is specific for the png problem (I was thinking in
general, for any image).
It is however useful to have as ie6 still not supporting png
transparency

I am implementing it and have 2 problems which should be simple for one
who knows javascript

1. It assumes the component is placed in an external file:
BEHAVIOR: url("pngbehavior.htc")
since I generate the code programmatically I need it to incorporate the
component
in the web page. How should the above call be modified to run the
component from within the page??

<public:component>
<public:attach event="onpropertychange" onevent="propertyChanged()" />
<script>
......
}

</script>
</public:component>

2. ie blocks the popups. Is there a way to elude it?

Thank you!!

Pamela

< br>

ex********@libero.it aécrit:
亲爱的Stephane

你的解决方案是针对png问题的(我在考虑一般,对于任何图像)。
Dear Stephane

Your solution is specific for the png problem (I was thinking in
general, for any image).




只有gif和png可以有透明背景


gif图片:任何浏览器都可以吃它:-)


png图片:单独的IE Win打破这种格式(想想我)


休息我不知道:我没有PC

- -

Stephane Moriaux et son [moins] vieux Mac



only gif and png can have transparent background

gif images : any browser can eat it :-)

png images : alone IE Win breaks with that format (do think I)

for rest I don''t know : I haven''t a PC
--
Stephane Moriaux et son [moins] vieux Mac


这篇关于网页透明层 - 请帮助!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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