我正在使用淡入淡出来淡入淡出渐变png以便阅读文本,它是png-24代码非常简单但函数不会淡出,它只是弹出和弹出$(文档).ready(){
$('#menu').hover(function() {
$('#gradient').fadeIn('slow');
}, function() {
$('#gradient').fadeOut('fast');
});
}); 发布于 2011-01-20 19:43:02
<html>
<head>
<title>Test Page</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#menu').hover(function() {
$('#gradient').fadeIn('slow');
}, function() {
$('#gradient').fadeOut('fast');
});
});
</script>
</head>
<body>
<div id="menu" style="background:red; height:200; width:200px;">
<input type="file" id="gradient" style="display:none" />
</div>
</body>
</html>它的工作正常......
https://stackoverflow.com/questions/4746516
复制相似问题