jQuery FullScreen Plugin
這是一個 jQuery 1.7 的插件,用于實現(xiàn)網(wǎng)頁的全屏顯示,是對 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
// // ...
// }
// });
});
}評論
圖片
表情
