Jquery 为什么Backgrounder插件不能在Firefox或Explorer中工作
我使用的是一个带有Backgrounder插件的全屏图像,它在Chrome中工作得很好,但在Firefox或Explorer中不会显示图像,我使用的是jQuery4.4Jquery 为什么Backgrounder插件不能在Firefox或Explorer中工作,jquery,jquery-plugins,fullscreen,Jquery,Jquery Plugins,Fullscreen,我使用的是一个带有Backgrounder插件的全屏图像,它在Chrome中工作得很好,但在Firefox或Explorer中不会显示图像,我使用的是jQuery4.4 $(document).ready(function(){ $(function() { $("#my_background").backgrounder(); }); }); <div id="my_background"><img src="../images/bk/luft.jpg" alt
$(document).ready(function(){
$(function() {
$("#my_background").backgrounder();
});
});
<div id="my_background"><img src="../images/bk/luft.jpg" alt="Lufthavn"/></div>
我面临着同样的背景问题。我认为最适合你需要的插件是。 其用途如下: js html
// 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);
<img id="bgimg" src="img/bg.jpg" />