这是我的问题,聊天中的绿色背景:
CSS:
html {
background: transparent!important;
}
框架:
<iframe frameborder="0" marginheight="0" style="height: 100%;margin-left: -19px;width: 520px;" marginwidth="0" scrolling="no" src="/chatbox/index.forum?page=front&"></iframe>
如何以正确的方式保持透明?
最佳答案
使用 body
标签代替 html
标签,并在 transparent
和 !important
之间留一个空格>
body {
background: transparent !important;
}
希望对你有帮助
关于javascript - Html/Css 透明 iframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28514044/