私はすべてのことを正しく行ったと思います。しかし、私はleft: '20px'
を置いたときに、私はなぜ私のアニメーション機能で左のcssプロパティ関数が機能しないのですか
$(document).ready(function(){
Init();
});
//Used for Initializing Events
function Init()
{
$("p").hover(function()
{
$(this).css("background-color", "yellow");
},
function()
{
$(this).css("background-color", "white");
});
$("body").fadeIn("slow");
$("h2").click(function()
{
$("h2").animate(
{
opacity: .25
left: '20px'
}
);
});
$( 'h2')。animate({opacity; .25、left: '20px'});より多くのattrsの間にカンマが必要です。 – ahmet2106