iframe设置无边框

对于一个引用iframe的结构来说,边框是大煞风景的,iframe默认带有立体感的边框,一开始以为用css的border-style属性能去掉,后来发现那个边框还是占了2个像素,只能通过在iframe标签内部用 frameborder=”no” border=”0″ 这个两个属性才能把边框去掉。

<code>

<iframe src="you page'url" id="iframe" width="750" height="30" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe></code>

这样,引用的页面不会有边框了…..

2 thoughts on “iframe设置无边框
  1. 所谓刚子 2012/10/21 22:58  1

    这还有一个站点!

Comments are closed.

添加一条新回复 回到顶部

亲爱的,主人已经关闭了这篇文章的评论 。