HTML CSS Reference/HTML Attributes Reference/allowtransparency

Материал из Web эксперт
Перейти к: навигация, поиск

"allowtransparency" Example

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



allowtransparency is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<frame>                         <iframe>                      |
+----------------+--------------------------------------------------------------+



"allowtransparency" Syntax and Note

Note:
    
This attribute creates the transpareny of frames. 
    
Syntax:
    
It is a Boolean attribute, taking the values true and false.
False is the default value.
<element allowtransparency="value"> . . . </element>