CSS給架構定義背景

來源:互聯網
上載者:User

架構頁檔案設定:

 

<body style="background-color:transparent" > 或 <body bgColor="transparent">

 

方法一:

 

<iframe src="about.htm" width="100%" height="100%" align="center" scrolling="auto" frameborder="0" style="filter:chroma(color=#ffffff)" >

</iframe>

 

缺點:iFrame裡的白色的都變透明了。

 

方法二:(個人推薦使用)

 

<iframe src="about.htm" width="100%" height="100%" align="center" scrolling="auto" frameborder="0" allowTransparency="true" >

</iframe>

 

還有其它幾個寫法,可以比較一下:

 

<iframe src="about.htm" allowTransparency="true" style="background-color: green"> </iframe >

 

<iframe src="about.htm"> </iframe >

 

<iframe src="about.htm" style="background-color: green"> </iframe >

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.