怎样使得frame的背景变透明
2个回答
展开全部
ie下需要给iframe标签添加allowTransparency属性,
<iframe allowTransparency="true" src="{url}"></iframe>
frame页面的html和body指定背景色为透明色
<style type="text/css">
html,body{
background-color:transparent;
}
</style>
<iframe allowTransparency="true" src="{url}"></iframe>
frame页面的html和body指定背景色为透明色
<style type="text/css">
html,body{
background-color:transparent;
}
</style>
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2017-05-12
展开全部
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const GWL_STYLE = (-16)
sub a
Dim oldSytle As Long
'oldSytle = GetWindowLong(hWnd, GWL_STYLE)
SetWindowLong hWnd, GWL_STYLE, _
GetWindowLong(hWnd, GWL_STYLE) _
Or WS_BORDER Or WS_EX_TRANSPARENT Or WS_EX_STATICEDGE
end sub
Private Const GWL_STYLE = (-16)
sub a
Dim oldSytle As Long
'oldSytle = GetWindowLong(hWnd, GWL_STYLE)
SetWindowLong hWnd, GWL_STYLE, _
GetWindowLong(hWnd, GWL_STYLE) _
Or WS_BORDER Or WS_EX_TRANSPARENT Or WS_EX_STATICEDGE
end sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询