IE下如何实现局部全屏

初心不变时过迁 2013-08-20 11:49:32
其它浏览器下我已经实现了

 
window.fullScreenApi.requestFullScreen(fsElement);//fsElement:容器对象


IE下应该是用ActiveXObject ~~ 可是不会用、、

...全文
248 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
3Q3Q 受教了
  • 打赏
  • 举报
回复
引用 5 楼 xiaofanku 的回复:

<style type="text/css">
.fullscreen {display: block;position: absolute!important;top: 0;left: 0;width: 100%!important; height: 100%!important;z-index: 9999999;margin: 0!important;padding: 0;background: inherit;clear:both;}
</style>
	<div class="frame mt10 extends">
	    <a href="javascript:;" id="fullink">全屏浏览</a>
	    <div id="tiplayer">谷歌地图应用正在加载...</div>
	    <div id="map_canvas"></div>
	</div>
	<script type="text/javascript">
	    $(document).ready(function(){
		$('#fullink').click(function(){
		    $('.extends').css('position','static')
		    $('#map_canvas').addClass('fullscreen');
		});
            });
CSS可以达到这个效果?
  • 打赏
  • 举报
回复
街头小贩 2013-08-20
  • 打赏
  • 举报
回复

<style type="text/css">
.fullscreen {display: block;position: absolute!important;top: 0;left: 0;width: 100%!important; height: 100%!important;z-index: 9999999;margin: 0!important;padding: 0;background: inherit;clear:both;}
</style>
	<div class="frame mt10 extends">
	    <a href="javascript:;" id="fullink">全屏浏览</a>
	    <div id="tiplayer">谷歌地图应用正在加载...</div>
	    <div id="map_canvas"></div>
	</div>
	<script type="text/javascript">
	    $(document).ready(function(){
		$('#fullink').click(function(){
		    $('.extends').css('position','static')
		    $('#map_canvas').addClass('fullscreen');
		});
            });
街头小贩 2013-08-20
  • 打赏
  • 举报
回复
引用 3 楼 ShenShiampMoYi 的回复:
[quote=引用 2 楼 xiaofanku 的回复:] 是想让某个div元素全屏显示?
嗯 是的 就差IE了、、[/quote] 前几年作的地图全屏:http://www.hunchun123.com/house/就是把地图所在的div全屏显示
  • 打赏
  • 举报
回复
引用 2 楼 xiaofanku 的回复:
是想让某个div元素全屏显示?
嗯 是的 就差IE了、、
街头小贩 2013-08-20
  • 打赏
  • 举报
回复
是想让某个div元素全屏显示?
  • 打赏
  • 举报
回复

87,991

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧