jQuery FullScreen Plugin -
未知
跨平台
JavaScript
软件简介
这是一个 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
// // ...
// }
// });
});
}