不厭其煩

Reder’s Blog, experimental version

iframe 的 border

有一則留言

雖然只是簡單小東西,不過還是備忘一下。

在頁面上的 <iframe></iframe> 如果想要做到無縫內嵌的話,除了在 CSS 裡設定:

* iframe, iframe {
    border: 0px none;
}

記得 HTML 中也得設定 frameborder


這樣 IE 6~8、Firefox、Safari 才會都沒問題。

作者為Reder

09/04/2009 於 5:39 下午

張貼於web design

標籤

一個回應

RSS訂閱留言。

  1. 呵呵,挺基础的,不过真的容易忘记

    taobao

    04/04/2010 at 4:04 下午


發表迴響

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

連結到 %s

Follow

Get every new post delivered to your Inbox.