我正在我的网站中整合Slideshare。幻灯片演示在小窗口中变得很好。但问题是全屏幕中的幻灯片演示不会进入Chrome(网站滑块本身全屏显示)。在Mozilla它的工作正常。仅限Chrome问题。 网站链接:http://test.kiadb.in/
This code I have used for Iframe <iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen="allowfullscreen"></iframe>
先谢谢。
答案 0 :(得分:4)
试试这种方式
<iframe src="http://yourpage.com" frameborder="0" allowFullScreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
答案 1 :(得分:2)
请尝试此iframe。
<iframe src="http://www.slideshare.net/slideshow/embed_code/56692337" frameborder="2" allowfullscreen></iframe>
我认为这对你有用。
答案 2 :(得分:1)
我在控制台中出错了 试着解决这个问题
并尝试此iframe
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>Archetype Created Web Application</display-name>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Manually apply filter for security -->
<filter>
<filter-name>manualSecurityFilter</filter-name>
<filter-class>com.psl.filters.ManualSecurityFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>manualSecurityFilter</filter-name>
<url-pattern>/Welcome</url-pattern>
</filter-mapping>
</web-app>
答案 3 :(得分:0)
尝试一下
allow="autoplay; encrypted-media" allowfullscreen="allowfullscreen" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" webkitallowfullscreen="webkitallowfullscreen" frameborder="0"
答案 4 :(得分:0)
确保您的Iframe没有插入其他iframe嵌入代码中。在这种情况下,父iFrame也必须具有allowfullscreen =“ true”参数。