标签: fullscreen

使用jQuery实现F11全屏功能

是否有可能将网页全屏显示,就像你按下了f11一样?在chrome中,这可以摆脱工具栏和一切.我正在使用jQuery,但如果这甚至可能,我无法找到信息.

谢谢你的帮助.

jquery jquery-ui fullscreen

2
推荐指数
1
解决办法
6278
查看次数

为什么这个list/scrollview没有填充父级?

我在这里遵循一些指示:http://saigeethamn.blogspot.com/2010/04/custom-listview-android-developer.html

我正在关注的示例显示全屏列表.这就是我想要我做的事情.我究竟做错了什么?

示例结果: 例子结果

我的结果:

我的结果

我遵循的示例使用了2 xml布局.1页面.1列表.

这页纸:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout 
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000fff"
android:layout_weight="2"
android:drawSelectorOnTop="false">
</ListView>
<TextView  android:id="@id/android:empty"
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:background="#FFff00"
android:text="No data"
/>
</LinearLayout>
</ScrollView>
Run Code Online (Sandbox Code Playgroud)

这是列表的xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">

<TextView android:id="@+id/tvAccountName"         
android:textSize="16sp"         
android:textStyle="bold" 
android:textColor="#FFFF00"        
android:layout_width="fill_parent"         
android:layout_height="fill_parent"/>
<TextView android:id="@+id/tvAccountType" 
android:typeface="sans"
android:textSize="14sp"
android:textStyle="italic"
android:layout_width="wrap_content" 
android:layout_height="wrap_content"/>
<TextView android:id="@+id/tvAccountBalance"         
android:textSize="12sp"         
android:textStyle="bold"      
android:layout_width="wrap_content"         
android:layout_height="fill_parent"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

这是清单中的条目:

   <activity android:name=".listAccountsPage"
              android:label="@string/app_name"
              >
        <intent-filter>
            <action android:name="com.ourcreditunion.ourcumobile.LISTACCOUNTS" />
            <category …
Run Code Online (Sandbox Code Playgroud)

android listview fullscreen

2
推荐指数
1
解决办法
2535
查看次数

全屏通过JavaScript

精心制作页面全屏是我最喜欢的主题之一,但每当我想到这样做时,我总是收到一个答案,那就是,它只能用flash完成.今天我第一次看到一个没有用flash完成的,有人可以告诉我它是如何完成的,所以我可以充分利用它的梦想^^这里是图像 http://content.screencast.com /users/cryoffalcon/folders/Jing/media/5ac91f6f-ed2f-4312-b8e3-3ac9771f5497/2012-04-13_0001.png

这是指存在此全屏按钮的页面的链接. http://tutorialzine.com/2010/09/html5-canvas-slideshow-jquery/

javascript fullscreen

2
推荐指数
1
解决办法
1028
查看次数

ios wantFullScreenLayout状态栏可见

我面临以下问题,我试图呈现一个modalViewController并使其覆盖整个屏幕,例如:

[controller setWantsFullScreenLayout:yes];
[myNavController presentModalViewController:controller animated:yes];
Run Code Online (Sandbox Code Playgroud)

结果是控制器没有覆盖整个屏幕,状态栏在顶部可见.我真的不明白为什么会这样.

fullscreen modalviewcontroller ios

2
推荐指数
1
解决办法
8039
查看次数

JOptionPane使用GraphicsDevice显示JFrame外部

package javaapplication1;

import java.awt.DisplayMode;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class JavaApplication1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        final JFrame frame = new JFrame();
        frame.setTitle("Frame");
        frame.setSize(800, 600);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
        device.setFullScreenWindow(frame);
        device.setDisplayMode(new DisplayMode(800, 600, 32, 60));
        frame.setVisible(true);

        JButton btn = new JButton();
        btn.setText("Button");
        JPanel panel = new JPanel();

        panel.add(btn);
        frame.add(panel);

        btn.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent …
Run Code Online (Sandbox Code Playgroud)

java swing awt fullscreen joptionpane

2
推荐指数
1
解决办法
1980
查看次数

在Firefox的js结尾处退出全屏视频?

<script>    
  $(document).ready(function(){
    $('#Video').bind('ended', function(){

      $('#Video')[0].mozCancelFullScreen();

    });
  });    
</script>
Run Code Online (Sandbox Code Playgroud)

我试图在全屏模式下使用视频按钮创建一个网站,以全屏显示一些视频.在视频结束时,视频屏幕应该关闭并显示全屏网站概述,但它不起作用.只有$('#Video').fadeout(); 作品和网站概述显示在视频结束后,但我无法重新打开视频.我试图用鼠标点击处理程序关闭全屏视频,但它也不起作用.

var Video = document.getElementById("Video")
    buttonFullscreen = document.getElementById("button");   

if (Video && buttonFullscreen) {
   videoFullscreen.addEventListener("click", function (evt) {

    if (Video.mozRequestFullScreen) {
      Video.mozRequestFullScreen();
      Video.mozSrcObject=null;
      Video.play();

      mouse.click( function () {
        Video.mousedown(function(event) {
          Video.pause();
          Video.mozSrcObject=null;
          Video.mozCancelFullScreen();
        }); 
     });

    }
  else if (Video.webkitRequestFullScreen) {
    Video.webkitRequestFullScreen();
    Video.play();

  }, false);
} 
Run Code Online (Sandbox Code Playgroud)

video jquery html5 fullscreen

2
推荐指数
1
解决办法
1067
查看次数

无法从iframe切换到全屏模式

我有一个带有按钮的Backbone视图,可以使视图在点击时全屏显示.我正在使用screenfull.js,我看不出与示例和代码有什么不同.但console.log(screenfull.enabled);总是false在clickHandler中返回.

var FullScreenButton = Backbone.Marionette.ItemView.extend({

  tagName: 'button',

  initialize: function () {
    this.$el.click(_.bind(this.goFullScreen, this));
  },

  goFullScreen: function () {
    console.log(screenfull.enabled);
    screenfull.request(this.options.container);
  }
});
Run Code Online (Sandbox Code Playgroud)

也没有screenfull.js它没有全屏:

goFullScreen: function() {

  var element = document.documentElement;

  if (element.requestFullScreen) {
    element.requestFullScreen();
  } else if (element.mozRequestFullScreen) {
    element.mozRequestFullScreen();
  } else if (element.webkitRequestFullScreen) {
    element.webkitRequestFullScreen();
  }

}
Run Code Online (Sandbox Code Playgroud)

javascript fullscreen backbone.js

2
推荐指数
1
解决办法
4897
查看次数

如何在特定事件后停止window.scroll()?

我想在扩展时使粘性导航行为类似(当菜单扩展时滚动关闭)到此网站的导航(http://amandagerhardsen.com/#cloudbusting/4).

我该怎么做?

 var Boxlayout = (function () {
        var $el = $('#sticky-nav'),
            $sections = $el.children('section'),
            // work panels
            $workPanelsContainer = $('#bl-panel-work-items'),
            // close work panel trigger
            $closeWorkItem = $workPanelsContainer.find('nav > span.hidemenu'),
            transEndEventNames = {
                'WebkitTransition': 'webkitTransitionEnd',
                'MozTransition': 'transitionend',
                'OTransition': 'oTransitionEnd',
                'msTransition': 'MSTransitionEnd',
                'transition': 'transitionend'
            },
            // transition end event name
            transEndEventName = transEndEventNames[Modernizr.prefixed('transition')],
            // support css transitions
            supportTransitions = Modernizr.csstransitions;

        function init() {
            initEvents();
        }

        function initEvents() {
            $sections.each(function () {
                var $section = $(this);
                // expand the …
Run Code Online (Sandbox Code Playgroud)

javascript jquery scroll fullscreen

2
推荐指数
2
解决办法
2万
查看次数

使用全屏隐藏android 4.4+或kitkat中的状态栏

我正在使用以下代码隐藏状态栏以实现全屏:

    void HideEverything(){
        if (Build.VERSION.SDK_INT < 16) {
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                    WindowManager.LayoutParams.FLAG_FULLSCREEN);
        } else {
            View decorView = getWindow().getDecorView();
            // Hide the status bar.
            int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
            decorView.setSystemUiVisibility(uiOptions);
            // Remember that you should never show the action bar if the
            // status bar is hidden, so hide that too if necessary.
            ActionBar actionBar = getActionBar();
            actionBar.hide();
        }
    }
Run Code Online (Sandbox Code Playgroud)

它以全屏模式显示屏幕,但当我触摸状态栏时,它显示状态栏.我尝试了其他选项在清单中的应用程序和活动级别添加全屏幕和没有标题栏主题,但仍然结果是相同的...... :(

我不想在任何步骤显示状态栏.如何在android中实现这一点?

编辑:

Android操作系统版本为4.4.2(以上代码适用于4.3但不适用于4.4.2)

更新:

问题已经解决了......答案分别写在下面......

android fullscreen statusbar hide android-4.4-kitkat

2
推荐指数
1
解决办法
8358
查看次数

全屏模式 - Windows 10 App(JS)

您好,我在网上搜索,无法找到正确的代码或其他内容,以将我的应用程序作为全屏运行.我想制作它,激活全屏模式并自动隐藏标题栏(带按钮).我是Visual Studios和Windows 10应用程序开发的初学者.我正在尝试创建一个JS应用程序.

我只能找到C#/ C++应用程序的全屏模式,但找不到JS.

https://github.com/JustinXinLiu/FullScreenTitleBarRepo/tree/master/FullScreenTitleBarRepo

fullscreen windows-applications windows-10 visual-studio-2015 uwp

2
推荐指数
1
解决办法
1368
查看次数