层透明请帮助!! [英] layer transparent Please HELP!!

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

问题描述

亲爱的朋友们,


我的名字是Pamela,我对CSS知之甚少,

但是我想问一个问题

我在css层的网页上有一个图像:


< DIV ID = MyLayer

STYLE =" position:absolute;顶部:68px; left:563px;

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

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

< / DIV>


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

(例如white)呈现为透明,即

图像下面的内容必须是可见的。


我该怎么办(我假设我的图像不透明

或浏览器不支持透明度,如ie6中的png)


如果是用CSS是不可能的,有没有人知道其他

的方法来解决它(潦草......?)


非常感谢


-Pamela

..NET开发人员

Dear friends,

My name is Pamela, I know little about CSS,
but I would like to ask a question
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, that is
what is under the image must be visible.

How can I do it (I am assuming my image is not transparent
or its transparency not supported by browser, like png in ie6)

If it is not possible with CSS does anybody know an other
way to solve it (scrips ...?)

Thank you very much

-Pamela
..NET Developer

推荐答案


ex********@libero.it schreef:

ex********@libero.it schreef:
< 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>

我需要这层有一定颜色的部分
(例如 ; white呈现透明,即
图像下面必须是可见的。
<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, that is
what is under the image must be visible.




我不会在此过于担心所有,因为你已经选择将b
放在左边的图像中,所以我的

视口中几乎没有显示我喜欢的尺寸(大约580px宽)并且大约480

高)。图像是否部分透明不是什么东西

我会注意到,因为我可能会在页面完全加载后立即离开

加载并且我注意到宽水平滚动,这是必要的使用

页面。


-


- - < - - @ - PretLetters:''woest wyf'',遇见了vele interesses:---------

weblog | http://home.wanadoo.nl/b。 de.zoete / _private / weblog.html

webontwerp | http://home.wanadoo.nl/b。 de.zoete / html / webontwerp.html

zweefvliegen | http://home.wanadoo.nl/b。 de.zoete / html / vliegen.html



I wouldn''t worry too much about that at all, since you''ve chosen to
place the image so far off to the left, it is hardly shown in my
viewport with my preferred dimensions (about 580px wide and about 480
high). Whether or not the image is partly transparent is not something
I will notice, since I will probably leave as soon as the page is fully
loaded and I notice the wide horizontal scroll that is necessary to use
the page.

--

-- --<--@ -- PretLetters: ''woest wyf'', met vele interesses: ---------
weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html
webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html
zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html


ex ******** @ libero.it 写道:
ex********@libero.it wrote:
我在css层的网页上有一张图片:


没有CSS层这样的东西,它是Macromedia营销

说话,丢失它。

< DIV ID = MyLayer
STYLE =" position:absolute; top:68px;左:563px;


我愿意打赌你使用绝对定位

不当。它通常用于定位大多数(如果不是全部)元素,

这是一个很大的错误,导致网站非常糟糕。另请注意

内联样式很少是个好主意,样式应该移到

外部样式表。

宽度:640px;高度: 480px;">
< IMG src =" ReportImageBox_12.54.52.png" width = 640 height = 480>< / IMG>
< / DIV>


您还应该学习如何编写正确的HTML,以上是无效的

标记,验证器可能有助于显示语法错误。

我需要将具有特定颜色的图层部分(例如白色)渲染为透明,即图像下面的部分必须是可见的。 />
我怎么能这样做(我假设我的图像不透明
或浏览器不支持它的透明度,如ie6中的png)
I have an image on a web page within a css layer:
There is no such thing as a CSS "layer", it''s Macromedia marketing
speak, lose it.
<DIV ID=MyLayer
STYLE = "position: absolute;top:68px; left:563px;
I''m willing to bet that you are using absolute positioning
inappropriately. It''s often used to position most if not all elements,
this is a big mistake that results in a very bad web site. Note also
that inline styles are rarely a good idea, styles should be moved to an
external stylesheet.
width:640px;height:480px;">
<IMG src="ReportImageBox_12.54.52.png" width=640 height=480></IMG>
</DIV>
You should also learn how to write proper HTML, the above is invalid
markup, a validator may help in showing the syntax errors.
I need that the parts of this layer which have a certain color
(for instance "white") be rendered transparent, that is
what is under the image must be visible.

How can I do it (I am assuming my image is not transparent
or its transparency not supported by browser, like png in ie6)




div的大小等于图像,我假设您对

透明度的引用因此适用于图像。图像透明度不能通过CSS操纵,使用图像编辑器。


-

Spartanicus



The div''s size is equal to the image, I assume that your reference to
transparency therefore applies to the image. Image transparency cannot
be manipulated via CSS, use an image editor.

--
Spartanicus


我使用的数字并不重要,它们是随机的。

问题是透明度。


如果你愿意,可以说吧是
The number I used are unimportant they are random.
The issue is transparency.

If you like lets say it is
< DIV ID = MyLayer
STYLE =" position:absolute; top:0px; left:0px;
width:200px; height:200px;">
< IMG src =" MyImage.png" width = 640 height = 480>< / IMG>
< / DIV>
<DIV ID=MyLayer
STYLE = "position: absolute;top:0px; left:0px;
width:200px;height:200px;">
<IMG src="MyImage.png" width=640 height=480></IMG>
</DIV>




页面是在批量任务中以编程方式*生成的。所以

其中任何东西都必须是




我的问题是。有没有办法告诉该图层给定颜色

(例如白色)

必须被视为透明度的关键?

Pamela



The page is generated * programmatically * within a bulk task. So
anything must be
inside of it.

My issue is. Is there a way to tell that layer that a given color
(example "white")
must be considered a key for transparency?

Pamela


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

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