Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14352
| From | Holger Suhr <holgerholgerde@yahoo.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: filter: inherit |
| Date | 2012-06-06 11:49 +0200 |
| Message-ID | <jqn92o$me3$1@news01.versatel.de> (permalink) |
| References | <KIWdnZ9txvbI5FDSnZ2dnUVZ_gednZ2d@westnet.com.au> |
Am 05.06.2012 05:13, schrieb Andrew Poulos:
> With IE 8 if I have this
>
> .fadein {
> filter:alpha(opacity=0);
> }
>
> <div id='a'
> class='fade'
> style="position:absolute; [size and position]>
> <div
> style="filter:inherit; position:absolute; [size and position]'>
> [content]
> </div>
> </div>
>
> both 'a' and 'b' are transparent (which is as expected) but if I have this
>
> <div id='a'
> class='fade'
> style="position:absolute; [size and position]>
> <div
> style="position:absolute; [size and position]'>
> [content]
> </div>
> </div>
>
> and then onload set
>
> document.getElementById('a').getElementsByTagName('div')[0].filter =
> "inherit";
>
> the inner DIV stays as opaque. Why doesn't the inner DIV inherit the
> style filter of its parent?
>
> Andrew Poulos
are
".fadein {"
and
"class='fade'"
correct?
with
getElementsByTagName('div')[0].filter =
you are changing the outer (first) div
I think
getElementsByTagName('div')[1].filter =
will do it (in this example).
Holger
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
filter: inherit Andrew Poulos <ap_prog@hotmail.com> - 2012-06-05 13:13 +1000
Re: filter: inherit Holger Suhr <holgerholgerde@yahoo.de> - 2012-06-06 11:49 +0200
Re: filter: inherit Andrew Poulos <ap_prog@hotmail.com> - 2012-06-06 22:36 +1000
csiph-web