时间:2024-10-11 22:05:34
1、新建一个html文件,命名为demo3.html,用于讲解jQuery怎么为渐变设置不透明度。
2、使用fadeTo方法为渐变设置不透明度。
3、运行网页,点击按钮后,红色方块的透明度会由1变成0.3。