script.aculo.us---Effect.Opacity

This effect changes an element’s opacity (transparency).

[b]作用 :改变元素透明度[/b]

[b]例子 :new Effect.Opacity('id_of_element', {duration:0.5,from:1.0,to:0.7});[/b]

Will fade the element from 100% to 70% over the space of 1/2 second.

Microsoft Internet Explorer can only set opacity on elements that have a ‘layout’ -->>Giving Elements Layout

[b]IE中只有layout的元素才能设置不透明值[/b]
-----------------------------------------------
For Effect.Opacity based effects to work in Internet Explorer, you need to have give the affected elements the so-called ‘layout’ quality.The object that the filter is applied to must have layout before the filter effect displays. You can give the object layout by doing one of the following:

[b]以下方法中可以使一个object layout 化[/b]
Setting the height or width property (doesn’t work on inline elements when the browser is not in quirksmode but in standards-compliant mode)
Setting the display property to inline-block
Setting the position property to absolute
Setting the writingMode property to tb-rl
Setting the contentEditable property to true

[url]http://wiki.script.aculo.us/scriptaculous/show/Effect.Opacity[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值