当前位置: 软件>JavaScript软件
jQuery FullScreen Plugin
本文导语: 这是一个 jQuery 1.7 的插件,用于实现网页的全屏显示,是对 Full Screen API 的封装。 示例代码: // The plugin sets the $.support.fullscreen flag: if($.support.fullscreen){ // ... // Show your full screen button here // ... ...
这是一个 jQuery 1.7 的插件,用于实现网页的全屏显示,是对 Full Screen API 的封装。
示例代码:
// The plugin sets the $.support.fullscreen flag:
if($.support.fullscreen){
// ...
// Show your full screen button here
// ...
$('#fullScreen').click(function(e){
$('#content').fullScreen();
// You can also pass a hash with properties:
// $('#content').fullScreen({
// 'background' : '#111',
// 'callback' : function(isFullScreen){
// // ...
// // Do some cleaning up here
// // ...
// }
// });
});
}