显示Iframe指定位置
2013-05-18 08:46
169 查看
只要1个wrapper指定高宽度,再用绝对定位,设置left和top为负值即可。
1 <style type="text/css"> 2 .wrapper 3 { width:670px; height:350px; margin:100px 30px; overflow:hidden; position:relative; } 4 .iframe { width:1024px;height:768px; position:absolute; top:-300px; left:-300px; } 5 </style> 6 <div class="wrapper"> 7 <iframe class="iframe" src="http://www.baidu.com" scrolling="no" frameborder="0"> 8 </iframe> 9 </div>
相关文章推荐
- 显示Iframe指定位置
- 使用iframe调用指定网页的特定位置(显示目标网页某区域的我想要的内容)
- android学习——popupWindow 在指定位置上的显示
- droid 指定Toast信息显示的位置并使用Toast显示其他View
- Android中【下拉刷新/上拉加载】WebView网页控件,Snackbar+CoordinatorLayoutt提示框(指定位置显示的提示框)
- $.messager.show扩展:指定位置显示
- android 之popupWindow 在指定位置上的显示
- C#指定窗口显示位置
- C#指定窗口显示位置
- 用JavaScript实现层在指定位置显示
- 将图片显示在指定位置?
- 【HTML】使用iframe标签显示目标网页(内容)的指定区域
- C#指定窗口显示位置的方法
- 单文档界面指定位置显示指定大小的文字(汉字和英文)
- $.messager.show扩展:指定位置显示
- Jquery 实现点击一个页面跳转后在另外一个页面显示指定位置
- iframe引入百度地图显示企业位置
- 自定义toast样式和指定显示位置
- android 之popupWindow 在指定位置上的显示
- C# winform 用textbox显示文本 如何把光标定位到指定的位置