jQueryfadeTo方法调整图片的透明度使用介绍_jquery
来源:动视网
责编:小采
时间:2020-11-27 21:09:18
jQueryfadeTo方法调整图片的透明度使用介绍_jquery
jQueryfadeTo方法调整图片的透明度使用介绍_jquery: 代码如下: .imgclass{ width:300px; height:300px; border:solid 1px red;} $(function () { $('#Select1').change(function () { var thevalue = $(this).val(); $('img').fadeTo(2000, t
导读jQueryfadeTo方法调整图片的透明度使用介绍_jquery: 代码如下: .imgclass{ width:300px; height:300px; border:solid 1px red;} $(function () { $('#Select1').change(function () { var thevalue = $(this).val(); $('img').fadeTo(2000, t
代码如下:
script>
$(function () {
$('#Select1').change(function () {
var thevalue = $(this).val();
$('img').fadeTo(2000, thevalue);
})
})
script>
透明度:
|
|
jQueryfadeTo方法调整图片的透明度使用介绍_jquery
jQueryfadeTo方法调整图片的透明度使用介绍_jquery: 代码如下: .imgclass{ width:300px; height:300px; border:solid 1px red;} $(function () { $('#Select1').change(function () { var thevalue = $(this).val(); $('img').fadeTo(2000, t