---
title: "iframe ie下设置无边框"
author: "dimingchan"
date: "2011-01-11T16:01:15Z"
tags: []
categories: ["Web前端"]
slug: "iframe-ie"
draft: false
lastmod: "2011-01-11T16:01:15Z"
id: 868405
url: "https://dimingchan.iteye.com/blog/868405"
---

<iframe src="url“ id="iframe" width="0" height="0" frameborder="no" border="0"></iframe>

iframe边框通过css设定在FF下正常在ie下却还存在边框，通过在iframe标签内部设置属性 frameborder="no" border="0" 可以去掉讨厌的iframe边框。

(经本人验证有效)