开发者

Why wont Backgrounder plugin work in Firefox or Explorer

I am using a full screen image with Backgrounder Plugin, It works great in Chrome, but wont show the image in Firefox or Explorer, I am using Jquery 4.4

 $(document).ready(function(){  
$(function() {
  $("#my_background").backgrounder();
});
});


<div id="my_background"><img src="../images/bk/luft.jpg" alt="Lu开发者_开发问答fthavn"/></div>


I face the same problem with backgrounder. I think the best plugin for your needs is fullscreenr. The use is something like this:

js

// You need to specify the size of your background image here (could be done automatically by some PHP code)
            var FullscreenrOptions = {  width: 1024, height: 683, bgID: '#bgimg' };
            // This will activate the full screen background!
            jQuery.fn.fullscreenr(FullscreenrOptions);

html

<img id="bgimg" src="img/bg.jpg" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜