去掉 iframe 边框以及滚动条以及背景透明
我们经常在html里面通过嵌入iframe的方式引入别的页面,但是因为某些原因,比如引入的页面比我们设置的iframe要大,这个时候就会出现滚动条,为了去除这个滚动条,我们可以在iframe里面加入一个css的属性
overflow:hidden;
通过设置这个属性iframe就不会出现滚动条了我们通过iframe引入的页面会生成一个边框,我们大部分情况下都不需要这个边框,那么我们可以这样设置
frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"
iframe引入的页面,我们还可以给他设置成透明的背景
allowTransparency="true"
![emlog插件开发手册[收藏]](/content/uploadfile/201211/ecb9af87327f9f2df1bfe992b0e329ee20121117143446.jpg)


