通过代码生成iframe,原生的背景色是白色,还有边框,想去除背景色和边框.iframe的背景色继承于body。!important表示优先级更高
style.css
body {
background-color: transparent !important;
}
iframe{
border: 0;
background-color: transparent;
}
通过代码生成iframe,原生的背景色是白色,还有边框,想去除背景色和边框.iframe的背景色继承于body。!important表示优先级更高
style.css
body {
background-color: transparent !important;
}
iframe{
border: 0;
background-color: transparent;
}