아이프레임을 사용하실때 배경이 불투명하여(흰색) 꾸미기가 난감하셨죠? 
아래 방법을 이용하시면 아이프레임이 투명해져서 감쪽같아집니다! 


1. 아이프레임으로 불러올 문서의 <body>  스타일을 아래와 같이 지정해줍니다. 
<BODY STYLE="background-color:transparent"> 

2. iframe을 불러들일때 아래 속성을 첨부해줍니다. 
<iframe src="URL" name="NAME" width="넓이" height="높이" border="0" frameborder="0" allowTransparency="true"></iframe> 

if ($board[bo_table] == '41' ) 
  echo "<iframe src='/bbs/online.php' width=100% height=500 frameborder=0 scrolling=no allowTransparency='true'></iframe>"; 


[불투명도 조절 tip] 
1. iframe 소스에 아래 문구를 추가해 줍니다. 
style="filter: Alpha(Opacity=35);" 
<iframe src="URL" width="넓이" height="높이" border="0" frameborder="0" style="filter: Alpha(Opacity=65);"></iframe> 

2. Opacity=35 의 숫자는 불투명도 조절이므로 알아서 적당한 숫자를 넣어주세요.




+ Recent posts