如图所示,我只想在我的iframe里显示其中的一部分
iframe放入relative定位的div中,div设置高度为你要显示的内容块的高度,然后overflow:hidden,iframe absolute定位,自己调整top为负值,值为显示内容块距离顶部的距离
<style>
.divifr{position:relative;height:300px;width:100%;overflow:hidden}
.divifr iframe{width:100%;height:10000px;position:absolute;top:-430px}
</style>
<div class="divifr">
<iframe src="http://bbs.csdn.net" frameborder='0'></iframe>
</div>