JavaScript 部分:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$('document').ready(function(){
setTimeout('slideback()', 1000);
function slideback()
{
$('body').css('background-image','url(http://sehirmedya.com/wp-content/uploads/2012/12/uluda%C4%9F.jpg)');
}
});
</script>
CSS 代码:
body{
background-image:url('taksi.jpg');
background-size:100%;
background-attachment:fixed;
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='taksi.jpg',
sizingMethod='scale')";
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='taksi.jpg',
sizingMethod='scale');
}
1000 毫秒后,它应该会改变,但不会。为什么不?我该如何解决这个问题?