'allowtransparency' creates the transparent frames : iframe « Tags « HTML / CSS






'allowtransparency' creates the transparent frames

 
    
<HTML>
<Title>Example For allowtransparency</Title>
<BODY>
<iframe src="http://www.java2s.com" allowTransparency="true" 
        style="width:40%;background-color:transparent">
</iframe>
<iframe src="http://www.java2s.com" style="width: 40%; background-color: green">
</iframe>
<iframe src="http://www.java2s.com" 
        allowTransparency="false" 
        style='width:40%;background-color:white'>
</iframe>
<iframe src="http://www.java2s.com" 
        allowTransparency ="true" 
        style="width:40%; background-color:lightgreen">
</iframe>
</BODY>
</HTML>
    
    
      
        
  








Related examples in the same category

1.'iframe' identifies a frame that can be placed anywhere inside a document
2.Use css to replace iframe
3.iframe style
4.An inline frame
5.target="iframe"
6.'scrolling' sets whether a frame should have a scroll bar or not
7.'security' sets whether the source file has security restrictions